LocationDataSource class final
The location data source provides location information that can be displayed on a map using the ArcGISMapViewController.locationDisplay.
This is a base class for a number of different location data sources, such as IndoorsLocationDataSource, NmeaLocationDataSource, RouteTrackerLocationDataSource, and SimulatedLocationDataSource. Call LocationDataSource.start to receive location updates and display the current location using the ArcGISMapViewController.locationDisplay.
- Implemented types
- Implementers
Constructors
- LocationDataSource()
-
Creates a location data source object.
factory
Properties
- error → ArcGISException?
-
An error that describes a problem encountered while starting or running
the LocationDataSource.
no setter
- exception → Exception?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onErrorChanged
→ Stream<
ArcGISException?> -
Indicates that the LocationDataSource.error property has changed.
no setter
-
onExceptionChanged
→ Stream<
Exception?> -
no setter
-
onHeadingChanged
→ Stream<
double> -
Set the heading changed callback function for the location data source.
no setter
-
onLocationChanged
→ Stream<
ArcGISLocation> -
Set the location changed callback function for the location data source.
no setter
-
onStatusChanged
→ Stream<
LocationDataSourceStatus> -
Set the status changed callback function for the location data source.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → LocationDataSourceStatus
-
The current status of the location data source.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → Future< void> - Starts the location data source asynchronously and prepares to begin receiving location updates.
-
stop(
) → Future< void> - Stops the location data source asynchronously.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateHeading(
double heading) → void - Updates the current heading angle, in degrees clockwise, relative to north.
-
updateLocation(
ArcGISLocation location) → void - Updates the position of the current location.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited