Loading...
Searching...
No Matches
<NCLocationListener> Protocol Reference

Class provides a callback to be invoked when LocationManager class downloads the location from server or load it from the storage. More...

#include <com/navigine/idl/objc/NCLocationListener.h>

Inherits <NSObject>.

Instance Methods

(void) - onLocationLoaded:
 Called when new location version has been downloaded from server or load it from the storage.
 
(void) - onLocationFailed:error:
 Called if unable to download location version from CMS.
 

Detailed Description

Class provides a callback to be invoked when LocationManager class downloads the location from server or load it from the storage.

Referenced from LocationManager.

Note
The callback is invoked in the UI thread.

Definition at line 20 of file NCLocationListener.h.

Method Documentation

◆ onLocationFailed:error:

- (void) onLocationFailed: (int32_t) locationId
error: (nullable NSError *) error 

Called if unable to download location version from CMS.

Parameters
locationIdlocation unique identifier in SMC.
errorhandled error.

◆ onLocationLoaded:

- (void) onLocationLoaded: (nullable NCLocation *) location

Called when new location version has been downloaded from server or load it from the storage.

Parameters
locationLocation instance or nil if server url or USER_HASH was changed.

The documentation for this protocol was generated from the following file: