Class is used for downloading and working with Location. More...
Inherits Finalizable.
Public Member Functions | |
void | addLocationListener (LocationListener listener) |
Method is used to add LocationListener element which will notify about newly downloaded and set location. | |
void | removeLocationListener (LocationListener listener) |
Method is used for removing previously added LocationListener class element. | |
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. | |
int | getLocationId () |
Method returns current location unique identifier. | |
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 19 of file location_manager.dart.
void LocationManager.addLocationListener | ( | LocationListener | listener | ) |
Method is used to add LocationListener element which will notify about newly downloaded and set location.
listener | Сorresponding LocationListener class. |
int LocationManager.getLocationId | ( | ) |
Method returns current location unique identifier.
void LocationManager.removeLocationListener | ( | LocationListener | listener | ) |
Method is used for removing previously added LocationListener class element.
listener | Сorresponding LocationListener class to remove. |
void LocationManager.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.
locationId | location id from CMS |
void LocationManager.setLocationUpdateInterval | ( | int | interval | ) |
Method is used to change interval in seconds check for new version from server Default: 300s.
interval | update interval in seconds |