Class is used for downloading and working with Location.
More...
Class is used for downloading and working with Location.
Referenced from NavigineSdk.
Definition at line 16 of file LocationManager.java.
◆ addLocationListener()
abstract void com.navigine.idl.java.LocationManager.addLocationListener |
( |
LocationListener | listener | ) |
|
|
abstract |
Method is used to add LocationListener element which will notify about newly downloaded and set location.
- Note
- Do not forget to remove listener if it is no longer needed!
- Parameters
-
◆ getLocationId()
abstract int com.navigine.idl.java.LocationManager.getLocationId |
( |
| ) |
|
|
abstract |
Method returns current location unique identifier.
- Returns
- current location unique identifier
◆ removeLocationListener()
abstract void com.navigine.idl.java.LocationManager.removeLocationListener |
( |
LocationListener | listener | ) |
|
|
abstract |
Method is used for removing previously added LocationListener class element.
- Parameters
-
◆ setLocationId()
abstract void com.navigine.idl.java.LocationManager.setLocationId |
( |
int | locationId | ) |
|
|
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.
- Parameters
-
locationId | location id from CMS |
◆ setLocationUpdateInterval()
abstract void com.navigine.idl.java.LocationManager.setLocationUpdateInterval |
( |
int | interval | ) |
|
|
abstract |
Method is used to change interval in seconds check for new version from server Default: 300s.
- Parameters
-
interval | update interval in seconds |
The documentation for this class was generated from the following file: