Package com.navmii.sdk.positioning
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
The event is called when GPS signal reception changes.- Parameters:
status
- New GPS signal reception status represented byGpsStatus
enum.
-
onGpsPositionChanged
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
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.
-