Class is used for downloading and working with Location. More...
#include <com/navigine/idl/objc/NCLocationManager.h>
Inherits NSObject.
Instance Methods | |
| (void) | - addLocationListener: |
| Method is used to add LocationListener element which will notify about newly downloaded and set location. | |
| (void) | - removeLocationListener: |
| Method is used for removing previously added LocationListener class element. | |
| (void) | - setLocationId: |
| 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. | |
| (int32_t) | - getLocationId |
| Method returns current location unique identifier. | |
| (void) | - setLocationUpdateInterval: |
| Method is used to change interval in seconds check for new version from server Default: 300s. | |
Class is used for downloading and working with Location.
Referenced from NavigineSdk.
Definition at line 18 of file NCLocationManager.h.
| - (void) addLocationListener: | (nullable id< NCLocationListener >) | listener |
Method is used to add LocationListener element which will notify about newly downloaded and set location.
| listener | Сorresponding LocationListener class. |
Swift code snippet:
Objective C code snippet:
| - (int32_t) getLocationId |
Method returns current location unique identifier.
Swift code snippet:
Objective C code snippet:
| - (void) removeLocationListener: | (nullable id< NCLocationListener >) | listener |
Method is used for removing previously added LocationListener class element.
| listener | Сorresponding LocationListener class to remove. |
Swift code snippet:
Objective C code snippet:
| - (void) setLocationId: | (int32_t) | locationId |
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.
| locationId | location id from CMS |
Swift code snippet:
Objective C code snippet:
| - (void) setLocationUpdateInterval: | (int32_t) | interval |
Method is used to change interval in seconds check for new version from server Default: 300s.
| interval | update interval in seconds |
Swift code snippet:
Objective C code snippet: