MapTrip SDK Android Manual 9.8.8
IwMapviewerConfigBase Class Reference
+ Inheritance diagram for IwMapviewerConfigBase:

Public Member Functions

final void applyConfiguration (final Mapviewer map, final int iwId)
 
int describeContents ()
 
String getColorProfile ()
 
Boolean getIsLocationTrackingEnabled ()
 
Boolean getIsRotationEnabled ()
 
MapType getMapType ()
 
MapPerspective getPerspective ()
 
Boolean getShowVehicleIcon ()
 
Boolean isRouteGuidanceEnabled ()
 
 IwMapviewerConfigBase ()
 
 IwMapviewerConfigBase (Context context, AttributeSet attrs)
 
 IwMapviewerConfigBase (final Mapviewer mapviewer)
 
 IwMapviewerConfigBase (IwMapviewerConfigBase toCopy)
 
 IwMapviewerConfigBase (Parcel in)
 
void setColorProfile (String colorProfile)
 
void setIsLocationTrackingEnabled (boolean isLocationTrackingEnabled)
 
void setIsRotationEnabled (boolean isRotationEnabled)
 
void setMapType (MapType mapType)
 
void setPerspective (MapPerspective perspective)
 
void setRouteGuidanceEnabled (boolean enabled)
 
void setShowVehicleIcon (boolean show)
 
String toString ()
 
void writeToParcel (Parcel destination, int flags)
 

Protected Member Functions

void applyConfigurationOnApiThread (final Mapviewer map, int iwId)
 
void parseStyleAttributes (Context context, AttributeSet attrs)
 

Detailed Description

\breif Holds Mapviewer configurations that can be passed as Style AttributeSets e.g. perspective, day - night mode ...

Class is parcelable to use it in Intent

Constructor & Destructor Documentation

◆ IwMapviewerConfigBase() [1/5]

IwMapviewerConfigBase ( final Mapviewer  mapviewer)

Create config from a Mapviewer instance

Parameters
mapviewer- mapviewer to create config from

◆ IwMapviewerConfigBase() [2/5]

Default constructor, default configuration

◆ IwMapviewerConfigBase() [3/5]

IwMapviewerConfigBase ( Context  context,
AttributeSet  attrs 
)

Create a configuration from XML styled attributes

Parameters
context- needed to parse attricutes
attrs- attrs defined in xml

◆ IwMapviewerConfigBase() [4/5]

IwMapviewerConfigBase ( Parcel  in)

Create config from parcel (restoreInstanceState)

Parameters
in- parcel containing mapdate

◆ IwMapviewerConfigBase() [5/5]

copy construcor

Parameters
toCopy

Member Function Documentation

◆ applyConfiguration()

final void applyConfiguration ( final Mapviewer  map,
final int  iwId 
)

Set the stored configuration values on a mapviewer instance

may not be overwritten - overwrite applyConfigurationOnApiThread instead

Parameters
map- map to read config from
iwId- id of the mapviewer

◆ applyConfigurationOnApiThread()

void applyConfigurationOnApiThread ( final Mapviewer  map,
int  iwId 
)
protected

Set the stored configuration values on a mapviewer instance This method is always called from the ui thread and should be overridden by subclasses

Parameters
map

Reimplemented in IwMapviewerConfig.

◆ describeContents()

int describeContents ( )

◆ getColorProfile()

String getColorProfile ( )

◆ getIsLocationTrackingEnabled()

Boolean getIsLocationTrackingEnabled ( )

◆ getIsRotationEnabled()

Boolean getIsRotationEnabled ( )

◆ getMapType()

MapType getMapType ( )

◆ getPerspective()

MapPerspective getPerspective ( )

◆ getShowVehicleIcon()

Boolean getShowVehicleIcon ( )

◆ isRouteGuidanceEnabled()

Boolean isRouteGuidanceEnabled ( )

◆ parseStyleAttributes()

void parseStyleAttributes ( Context  context,
AttributeSet  attrs 
)
protected

Parse attributes from XML and store in variables

Not all attributes are in the styles because. Sometimes it does not makes sense to configer them for example routeGuidanceMode enabled which needs an active navigation

Parameters
context- enables parsing of styles
attrs- attributes

Reimplemented in IwMapviewerConfig.

◆ setColorProfile()

void setColorProfile ( String  colorProfile)

◆ setIsLocationTrackingEnabled()

void setIsLocationTrackingEnabled ( boolean  isLocationTrackingEnabled)

◆ setIsRotationEnabled()

void setIsRotationEnabled ( boolean  isRotationEnabled)

◆ setMapType()

void setMapType ( MapType  mapType)

◆ setPerspective()

void setPerspective ( MapPerspective  perspective)

◆ setRouteGuidanceEnabled()

void setRouteGuidanceEnabled ( boolean  enabled)

◆ setShowVehicleIcon()

void setShowVehicleIcon ( boolean  show)

◆ toString()

String toString ( )

◆ writeToParcel()

void writeToParcel ( Parcel  destination,
int  flags 
)

Write this config data to a parcel (used onSaveInstanceState)

Parameters
destination- parcel to write to
flags- specific flags for the parcel

Reimplemented in IwMapviewerConfig.


The documentation for this class was generated from the following file: