SystemLocationDataSource class final

A LocationDataSource that provides location updates from the device.

Use this data source to display location data on a map using the ArcGISMapViewController.locationDisplay.

When the start() function is called, the application will trigger a system location permissions dialog for the user if permission has not already been granted. For more granular control over when location permission is requested, consider integrating a permission handling package to request permission at any point within your application's workflow.

Inheritance

Constructors

SystemLocationDataSource({int interval = 250, double distanceFilter = 0.0})
Creates a system location data source. The interval is the interval in milliseconds at which location updates are requested. The distanceFilter is the distance filter in meters at which location updates are requested.
factory

Properties

error ArcGISException?
An error that describes a problem encountered while starting or running the LocationDataSource.
no setterinherited
exception Exception?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
onErrorChanged Stream<ArcGISException?>
Indicates that the LocationDataSource.error property has changed.
no setterinherited
onExceptionChanged Stream<Exception?>
no setterinherited
onHeadingChanged Stream<double>
Set the heading changed callback function for the location data source.
no setterinherited
onLocationChanged Stream<ArcGISLocation>
Set the location changed callback function for the location data source.
no setterinherited
onStatusChanged Stream<LocationDataSourceStatus>
Set the status changed callback function for the location data source.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status LocationDataSourceStatus
The current status of the location data source.
no setterinherited

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.
inherited
stop() Future<void>
Stops the location data source asynchronously.
inherited
toString() String
A string representation of this object.
inherited
updateHeading(double heading) → void
Updates the current heading angle, in degrees clockwise, relative to north.
inherited
updateLocation(ArcGISLocation location) → void
Updates the position of the current location.
inherited

Operators

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