Skip to content

Class LocationManager

Il Kadyrov edited this page Oct 12, 2020 · 6 revisions

LocationManager class is used for downloading and working with location.

Referenced from: NavigineSdk.

Public methods

Function addLocationListener

public void addLocationListener(LocationListener locationListener)

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

Parameters

Function removeLocationListener

public void removeLocationListener(LocationListener locationListListener)

Function is used for removing previously added LocationListener class element.

Parameters

Function setLocation

public void setLocation(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 int getLocationId()

Function is used for getting current location id.

Return value

Id of current set location.

Clone this wiki locally