Class NCLocationManager - Navigine/Indoor-Navigation-iOS-Mobile-SDK-2.0 GitHub Wiki
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
listener
— NCLocationListener class element.
Function removeLocationListener
- (void)removeLocationListener:(nullable id<NCLocationListener>)listener;
Function is used for removing previously added NCLocationListener class element.
Parameters
listener
— NCLocationListener class element.
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
locationId
— id of NCLocation class element, which could be took from NCLocationInfo.
Function getLocationId
- (int32_t)getLocationId;
Function is used for getting current location id.
Return value
Id of current set location.