PositionService class abstract Sensor Data Source

Position service class

Constructors

PositionService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

improvedPosition GemImprovedPosition?
Fetches the latest map-matched position data available.
no setter
playback Playback?
Retrieves the data source playback interface, if available.
no setter
position GemPosition?
Fetches the latest position data available.
no setter
sourceType DataSourceType
Retrieves the method used to obtain the position data.
no setter

Static Methods

addImprovedPositionListener(void positionUpdatedCallback(GemImprovedPosition position)) GemPositionListener
Registers a new improved listener for position updates.
addPositionListener(void positionUpdatedCallback(GemPosition position)) GemPositionListener
Registers a new listener for position updates.
getDataSource() DataSource?
Retrieves the current data source used for obtaining position data.
removeDataSource() → void
Removes the position service's current data source (sets it to none).
removeListener(GemPositionListener listener) → void
Unregisters a position listener.
requestLocationPermission() Future<bool>
Requests location permission. Only works on Web.
setExternalDataSource(DataSource dataSource) GemError
Sets the current data source for obtaining position data.
setLiveDataSource() GemError
Sets the position service's current data source to live.