Skip to content

Class LocationManager

Pavel Tychinin edited this page Mar 27, 2024 · 6 revisions

LocationManager class is used for downloading and working with location.

Referenced from: NavigineSdk.

Public methods

Function addLocationListener

public abstract void addLocationListener(LocationListener listener);

Function is used for adding LocationListener class element which will notify about newly downloaded and set location.

Parameters

Function removeLocationListener

public abstract void removeLocationListener(LocationListener listener);

Function is used for removing previously added LocationListener class element.

Parameters

Function setLocationId

public abstract void setLocationId(int locationId);

Function is used for setting current location, which will be downloaded from server or from storage, if it was downloaded before.

Parameters

Function getLocation

public abstract int getLocationId();

Function is used for getting current location id.

Return value

Id of current set location.

Function setLocationUpdateInterval

public abstract void setLocationUpdateInterval(int interval);

Аunction is used to set the interval for checking the availability of a new version of the location.

Parameters
  • interval — interval in seconds for checking the availability of a new version of the location.
Clone this wiki locally