Loading...
Searching...
No Matches
PositionListener Class Referenceabstract

Class provides a callback to be invoked when NavigationManager updates the position of the device. More...

Public Member Functions

void onPositionUpdated (Position position)
 Called when new position has been calculated.
 
void onPositionError (Error error)
 Called if unable to calculate user's position.
 

Detailed Description

Class provides a callback to be invoked when NavigationManager updates the position of the device.

Referenced from NavigationManager RouteManager.

Note
The callback is invoked in the UI thread.

Definition at line 23 of file position_listener.dart.

Member Function Documentation

◆ onPositionError()

void PositionListener.onPositionError ( Error error)

Called if unable to calculate user's position.

Parameters
errorhandled error.

◆ onPositionUpdated()

void PositionListener.onPositionUpdated ( Position position)

Called when new position has been calculated.

Parameters
positioncurrent user Position.

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