location manager that takes an external Location and passes it to the api More...
Inheritance diagram for IwLocationManagerManual:Public Member Functions | |
| void | addListener (IwLocationListener l) |
| void | addNmeaListener (GpsStatus.NmeaListener nmeaListener) |
| void | addNmeaListener (NmeaListener nmeaListener) |
| void | disableLocationUpdates () |
| void | doBestPossibleUpdate () |
| boolean | enableLocationUpdates () |
| Location | getCurrentLocation () |
| Position | getCurrentWGS84Position () |
| String | getLocationProvider () |
| void | onLocationChanged (@NonNull List< Location > locations) |
| void | onLocationChanged (Location location) |
| void | onProviderDisabled (String provider) |
| void | onProviderEnabled (String provider) |
| void | onStatusChanged (String provider, int status, Bundle extras) |
| void | reInitLocationProvider () |
| void | removeListener (IwLocationListener l) |
| void | setCurrentLocationNotFix () |
| void | uninit () |
Static Public Attributes | |
| static final String | LOCATION_PROVIDER_MANUAL = "Manual" |
Protected Member Functions | |
| Location | makeBadGpsIfEnabled (Location location) |
| void | notifyGpsFix (boolean isGPSFix) |
| void | notifyGpsStatusChanged (int status, Bundle bundle) |
| void | notifyNewGpsLocation (Location location) |
| void | passLocationToApi (final Location loc) |
| void | setLastReceivedLocation (Location loc) |
Static Protected Member Functions | |
| static final long | getFixTimeMS (Location location) |
This class c an be used to redirect google location service data to the SDK. Pass an Instance of the class to the APIHelper init Method and call the onLocationChanged() method to update the location in the Map
No Permissions are required
|
inherited |
add location listener
@paramn listener - listener to add
Implements IwLocationManager.
Reimplemented in IwLocationManagerGPS.
| void addNmeaListener | ( | GpsStatus.NmeaListener | nmeaListener | ) |
|
inherited |
add NMEAListener
| nmeaListener | - listener to add |
Implemented in IwLocationManagerGPS, and IwLocationManagerLog.
| void disableLocationUpdates | ( | ) |
disable the location manager
Implements IwLocationManager.
| void doBestPossibleUpdate | ( | ) |
location manager tries to determine the best possible location and updates the API
Implements IwLocationManager.
| boolean enableLocationUpdates | ( | ) |
enable the location manager
Implements IwLocationManager.
|
inherited |
|
inherited |
Implements IwLocationManager.
|
staticprotectedinherited |
| String getLocationProvider | ( | ) |
Implements IwLocationManager.
|
protectedinherited |
Adds noise to a given location
| location | - location to add noise to |
|
protectedinherited |
notify listeners about a gps fix
| isGPSFix | if true, a fix is found if false it is lost |
|
protectedinherited |
notify listener about status changed
|
protectedinherited |
notify listeners about a new gps location
| location | - the new received location |
|
inherited |
| void onLocationChanged | ( | Location | location | ) |
|
inherited |
|
inherited |
|
inherited |
Reimplemented in IwLocationManagerGPS, and IwLocationManagerLog.
|
protectedinherited |
Passes the given location to the msm API in a queueApiCall
| loc | to pass |
| void reInitLocationProvider | ( | ) |
Search for best possible provider and calls disableLocationUpdates internal To get new location updates after this enableLocationUpdates must be called.
Implements IwLocationManager.
|
inherited |
|
inherited |
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
Implements IwLocationManager.
|
protectedinherited |
store last received location
| loc | - location to set |
|
inherited |
clear listener
|
static |