Loading...
Searching...
No Matches
LocationListener Class Referenceabstract

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

Public Member Functions

void onLocationLoaded (Location location)
 Called when new location version has been downloaded from server or load it from the storage.
 
void onLocationFailed (int locationId, Error 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 24 of file location_listener.dart.

Member Function Documentation

◆ onLocationFailed()

void LocationListener.onLocationFailed ( int locationId,
Error error )

Called if unable to download location version from CMS.

Parameters
locationIdlocation unique identifier in SMC.
errorhandled error.

◆ onLocationLoaded()

void LocationListener.onLocationLoaded ( Location 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 class was generated from the following file: