Uses the Android Location provider to update the position in the Map. More...
Inheritance diagram for IwLocationManagerGPS:Public Member Functions | |
| void | addListener (IwLocationListener l) |
| void | addNmeaListener (NmeaListener nmeaListener) |
| void | disableLocationUpdates () |
| void | doBestPossibleUpdate () |
| boolean | enableLocationUpdates () |
| Location | getCurrentLocation () |
| Position | getCurrentWGS84Position () |
| String | getLocationProvider () |
| boolean | isBetterLocation (Location location, Location currentBestLocation) |
| IwLocationManagerGPS (Context context) | |
| void | onFirstFix (int ttffMillis) |
| void | onFlushComplete (int requestCode) |
| void | onGpsStatusChanged (int event) |
| void | onLocationChanged (@NonNull List< Location > locations) |
| void | onLocationChanged (@NonNull Location location) |
| void | onProviderDisabled (String provider) |
| void | onProviderEnabled (String provider) |
| void | onSatelliteStatusChanged (GnssStatus status) |
| void | onStarted () |
| void | onStatusChanged (String provider, int status, Bundle extras) |
| void | onStopped () |
| void | reInitLocationProvider () |
| void | removeListener (IwLocationListener l) |
| void | setCurrentLocationNotFix () |
| void | uninit () |
Static Public Member Functions | |
| static Location | getBestPositionFast (Context context) |
| static boolean | isNetworkProvider (Location loc) |
| static boolean | isSameProvider (String provider1, String provider2) |
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) |
Usage of this class requires ACCES_FINE_LOCATION Permission
| IwLocationManagerGPS | ( | Context | context | ) |
| void addListener | ( | IwLocationListener | l | ) |
on registration send gps Enabled/Disabled callbacks and the last known location
Reimplemented from IwLocationManagerBase.
| void addNmeaListener | ( | NmeaListener | nmeaListener | ) |
| 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 update
Implements IwLocationManager.
|
static |
|
inherited |
|
inherited |
Implements IwLocationManager.
|
staticprotectedinherited |
| String getLocationProvider | ( | ) |
Implements IwLocationManager.
| boolean isBetterLocation | ( | Location | location, |
| Location | currentBestLocation | ||
| ) |
|
static |
|
static |
|
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 |
| void onFirstFix | ( | int | ttffMillis | ) |
| void onFlushComplete | ( | int | requestCode | ) |
| void onGpsStatusChanged | ( | int | event | ) |
|
inherited |
| void onLocationChanged | ( | @NonNull Location | location | ) |
|
inherited |
|
inherited |
| void onSatelliteStatusChanged | ( | GnssStatus | status | ) |
| void onStarted | ( | ) |
| void onStatusChanged | ( | String | provider, |
| int | status, | ||
| Bundle | extras | ||
| ) |
Reimplemented from IwLocationManagerBase.
| void onStopped | ( | ) |
|
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