MapTrip SDK Android Manual 9.8.8
IwLocationManager Interface Reference

Interface for all iwlocationManagers. More...

+ Inheritance diagram for IwLocationManager:

Public Member Functions

void addListener (IwLocationListener listener)
 
void addNmeaListener (NmeaListener nmeaListener)
 
void disableLocationUpdates ()
 
void doBestPossibleUpdate ()
 
boolean enableLocationUpdates ()
 
Position getCurrentWGS84Position ()
 
String getLocationProvider ()
 
void reInitLocationProvider ()
 
void removeListener (IwLocationListener listener)
 
void setCurrentLocationNotFix ()
 

Detailed Description

Member Function Documentation

◆ addListener()

void addListener ( IwLocationListener  listener)

add location listener

@paramn listener - listener to add

Implemented in IwLocationManagerBase, and IwLocationManagerGPS.

◆ addNmeaListener()

void addNmeaListener ( NmeaListener  nmeaListener)

add NMEAListener

Parameters
nmeaListener- listener to add

Implemented in IwLocationManagerGPS, and IwLocationManagerLog.

◆ disableLocationUpdates()

void disableLocationUpdates ( )

disable the location manager

Implemented in IwLocationManagerGPS, IwLocationManagerLog, and IwLocationManagerManual.

◆ doBestPossibleUpdate()

void doBestPossibleUpdate ( )

location manager tries to determine the best possible location and updates the API

Implemented in IwLocationManagerGPS, IwLocationManagerLog, and IwLocationManagerManual.

◆ enableLocationUpdates()

boolean enableLocationUpdates ( )

enable the location manager

Returns
true on success - false otherwise ( check permissions in that case)

Implemented in IwLocationManagerGPS, IwLocationManagerLog, and IwLocationManagerManual.

◆ getCurrentWGS84Position()

Position getCurrentWGS84Position ( )
Returns
current GPS position in WGS84 projection

Implemented in IwLocationManagerBase.

◆ getLocationProvider()

String getLocationProvider ( )
Returns
String - provider for the locations - ( network, gps, log, manual... )

Implemented in IwLocationManagerGPS, IwLocationManagerLog, and IwLocationManagerManual.

◆ reInitLocationProvider()

void reInitLocationProvider ( )

Search for best possible provider and calls disableLocationUpdates internal To get new location updates after this enableLocationUpdates must be called.

Implemented in IwLocationManagerGPS, IwLocationManagerLog, and IwLocationManagerManual.

◆ removeListener()

void removeListener ( IwLocationListener  listener)

remove location listener

Parameters
listener- listener to remove

Implemented in IwLocationManagerBase.

◆ setCurrentLocationNotFix()

void setCurrentLocationNotFix ( )

pass the current location with bad to the api so that the position icon appears grey e.g. if there is no further GPS for a time or GPS gets deactivate this Method can be used to indicate

Implemented in IwLocationManagerBase.


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