Class is used for downloading and working with Location. More...
Public Member Functions | |
| abstract void | addLocationListener (LocationListener listener) |
| Method is used to add LocationListener element which will notify about newly downloaded and set location. | |
| abstract void | removeLocationListener (LocationListener listener) |
| Method is used for removing previously added LocationListener class element. | |
| abstract void | setLocationId (int locationId) |
| Method is used for setting current location, which will be downloaded from server or from storage, if it was downloaded before. Result will be handled by LocationListener. | |
| abstract int | getLocationId () |
| Method returns current location unique identifier. | |
| abstract void | setLocationUpdateInterval (int interval) |
| Method is used to change interval in seconds check for new version from server Default: 300s. | |
Class is used for downloading and working with Location.
Referenced from NavigineSdk.
Definition at line 16 of file LocationManager.java.
|
abstract |
Method is used to add LocationListener element which will notify about newly downloaded and set location.
| listener | Сorresponding LocationListener class. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Method returns current location unique identifier.
Java code snippet:
Kotlin code snippet:
|
abstract |
Method is used for removing previously added LocationListener class element.
| listener | Сorresponding LocationListener class to remove. |
Java code snippet:
Kotlin code snippet:
|
abstract |
Method is used for setting current location, which will be downloaded from server or from storage, if it was downloaded before. Result will be handled by LocationListener.
| locationId | location id from CMS |
Java code snippet:
Kotlin code snippet:
|
abstract |
Method is used to change interval in seconds check for new version from server Default: 300s.
| interval | update interval in seconds |
Java code snippet:
Kotlin code snippet: