Skip to content

Class NCLocationManager

ekhabibullina edited this page Sep 30, 2024 · 4 revisions

NCLocationManager class is used for downloading and working with location. You can look this tutorial to learn more about using this class.

Referenced from: NCNavigineSdk.

Public methods

Function addLocationListener

- (void)addLocationListener:(nullable id<NCLocationListener>)listener;

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

Parameters

Function removeLocationListener

- (void)removeLocationListener:(nullable id<NCLocationListener>)listener;

Function is used for removing previously added NCLocationListener class element.

Parameters

Function setLocationId

- (void)setLocationId:(int32_t)locationId;

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

Parameters

Function getLocationId

- (int32_t)getLocationId;

Function is used for getting current location id.

Return value

Id of current set location.

Clone this wiki locally