Inheritance diagram for IwLocationManagerBase:Public Member Functions | |
| void | addListener (IwLocationListener l) |
| void | addNmeaListener (NmeaListener nmeaListener) |
| void | disableLocationUpdates () |
| void | doBestPossibleUpdate () |
| boolean | enableLocationUpdates () |
| Location | getCurrentLocation () |
| Position | getCurrentWGS84Position () |
| String | getLocationProvider () |
| void | onLocationChanged (@NonNull List< Location > locations) |
| 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 () |
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) |
Created by reckhaus on 22.03.2016.
Handles common behavior for all location providers - e.g. listener notification and location redirection to API
| void addListener | ( | IwLocationListener | listener | ) |
add location listener
@paramn listener - listener to add
Implements IwLocationManager.
Reimplemented in IwLocationManagerGPS.
|
inherited |
add NMEAListener
| nmeaListener | - listener to add |
Implemented in IwLocationManagerGPS, and IwLocationManagerLog.
|
inherited |
disable the location manager
Implemented in IwLocationManagerGPS, IwLocationManagerLog, and IwLocationManagerManual.
|
inherited |
location manager tries to determine the best possible location and updates the API
Implemented in IwLocationManagerGPS, IwLocationManagerLog, and IwLocationManagerManual.
|
inherited |
enable the location manager
Implemented in IwLocationManagerGPS, IwLocationManagerLog, and IwLocationManagerManual.
| Location getCurrentLocation | ( | ) |
| Position getCurrentWGS84Position | ( | ) |
Implements IwLocationManager.
|
staticprotected |
|
inherited |
Implemented in IwLocationManagerGPS, IwLocationManagerLog, and IwLocationManagerManual.
|
protected |
Adds noise to a given location
| location | - location to add noise to |
|
protected |
notify listeners about a gps fix
| isGPSFix | if true, a fix is found if false it is lost |
|
protected |
notify listener about status changed
|
protected |
notify listeners about a new gps location
| location | - the new received location |
| void onLocationChanged | ( | @NonNull List< Location > | locations | ) |
| void onProviderDisabled | ( | String | provider | ) |
| void onProviderEnabled | ( | String | provider | ) |
| void onStatusChanged | ( | String | provider, |
| int | status, | ||
| Bundle | extras | ||
| ) |
Reimplemented in IwLocationManagerGPS, and IwLocationManagerLog.
|
protected |
Passes the given location to the msm API in a queueApiCall
| loc | to pass |
|
inherited |
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.
| void removeListener | ( | IwLocationListener | listener | ) |
| 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
Implements IwLocationManager.
|
protected |
store last received location
| loc | - location to set |
| void uninit | ( | ) |
clear listener