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. | |
Class provides a callback to be invoked when NavigationManager updates the position of the device.
Referenced from NavigationManager RouteManager.
Definition at line 23 of file position_listener.dart.
| void PositionListener.onPositionError | ( | Error | error | ) |
Called if unable to calculate user's position.
| error | handled error. |
Dart code snippet:
| void PositionListener.onPositionUpdated | ( | Position | position | ) |
Called when new position has been calculated.
| position | current user Position. |
Dart code snippet: