PositionService class Sensor Data Source
Position service class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceType → DataSourceType
-
Retrieves the method used to obtain the position data.
no setter
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.
-
getImprovedPosition(
) → GemImprovedPosition? -
getPosition(
) → GemPosition? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeDataSource(
) → void - Removes the position service's current data source (sets it to none).
-
removeListener(
IGemPositionListener listener) → void - Unregisters a position listener.
-
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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → PositionService
-
Returns the singleton instance of PositionService.
no setter
Static Methods
-
requestLocationPermission(
) → Future< bool> - Requests location permission. Only works on Web.