Interface PositionManager.PositionListener

Enclosing class:
PositionManager

public static interface PositionManager.PositionListener
  • Method Summary

    Modifier and Type Method Description
    void onExtrapolatedPositionChanged​(MapCoordinates coordinates)
    The event is called when the extrapolated position of the GPS cursor is changed, which usually happens on every screen refresh.
    void onGpsPositionChanged​(android.location.Location rawPosition, Position snappedGpsPosition)
    The event is called when user's current position changes from the previous value.
    void onGpsStatusChanged​(GpsStatus status)
    The event is called when GPS signal reception changes.
  • Method Details

    • onGpsStatusChanged

      void onGpsStatusChanged​(GpsStatus status)
      The event is called when GPS signal reception changes.
      Parameters:
      status - New GPS signal reception status represented by GpsStatus enum.
    • onGpsPositionChanged

      void onGpsPositionChanged​(android.location.Location rawPosition, Position snappedGpsPosition)
      The event is called when user's current position changes from the previous value.
      Parameters:
      rawPosition - Raw GPS position, as received from the system.
      snappedGpsPosition - The position snapped to a road.
    • onExtrapolatedPositionChanged

      void onExtrapolatedPositionChanged​(MapCoordinates coordinates)
      The event is called when the extrapolated position of the GPS cursor is changed, which usually happens on every screen refresh. Therefore it's not recommended to perform heavy operations in this method.

      Consider using onGpsPositionChanged(Location, Position) to handle position updates every second.

      Parameters:
      coordinates - The coordinates of the GPS cursor.