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:

Constructors

GemPositionListener()

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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