GemPositionListener class abstract Position
Position update callback interface for real-time location tracking.
This abstract class defines a callback interface that receives position updates from the Maps SDK. Position listeners are created internally by the PositionService when you register position update callbacks using PositionService.addPositionListener or PositionService.addImprovedPositionListener.
This is a callback interface managed by the SDK. You cannot instantiate it directly. Instead, register position callbacks with PositionService, which returns a GemPositionListener instance that can be used to remove the listener later.
The interface provides two types of position notifications:
- Basic position updates (notifyOnNewPosition): Raw GPS coordinates, speed, accuracy, and other basic location data from the device sensors.
- Improved position updates (notifyOnNewImprovedPosition): Map-matched positions that include additional context such as current road information, speed limits, road modifiers, and address details.
See also:
- PositionService.addPositionListener for registering basic position callbacks
- PositionService.addImprovedPositionListener for registering enhanced position callbacks
- GemPosition for basic position data structure
- GemImprovedPosition for enhanced position data structure
Constructors
Properties
Methods
-
dispose(
) → FutureOr< void> -
inherited
-
handleEvent(
Map arguments) → void -
Method called when event is called from the native side.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyOnNewImprovedPosition(
GemImprovedPosition pos) → void - Enhanced position update callback invoked by the SDK.
-
notifyOnNewPosition(
GemPosition pos) → void - Basic position update callback invoked by the SDK.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited