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
- 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 - Register a new improved listener for updates.
-
addPositionListener(
void positionUpdatedCallback(GemPosition position)) → GemPositionListener - Register a new listener for 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 - Remove the position service current datasource (set it to none)
-
removeListener(
IGemPositionListener listener) → void - Unregister a position listener.
-
setExternalDataSource(
DataSource dataSource) → GemError - Sets the current data source for obtaining position data.
-
setLiveDataSource(
) → GemError - Set the position service current datasource to live.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → PositionService
-
no setter
-
requestLocationPermission
→ Future<
bool> -
Requests location permission. Only works on Web.
no setter