MethodChannelAwsLocation class

Android and iOS implementation, talking to the native plugin classes (AwsLocationServicePlugin) that wrap the Amazon Location Mobile SDKs.

Wire format: dates are milliseconds since the epoch (UTC); positions are maps with latitude, longitude, sampleTime and optional receivedTime, accuracy and deviceId.

Inheritance

Constructors

MethodChannelAwsLocation()

Properties

eventChannel → EventChannel
final
hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
trackingEvents → Stream<CloudTrackingEvent>
Positions, uploads and errors while tracking runs (broadcast).
no setteroverride

Methods

configureTracker(CloudTrackerConfig config) → Future<String>
Signs in to the identity pool and creates the tracker client. Returns the device id positions are reported under.
override
isTracking() → Future<bool>
override
latestPosition() → Future<TrackerPosition?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
positionHistory({DateTime? from, DateTime? to, int? maxResults}) → Future<List<TrackerPosition>>
override
startBackgroundTracking(BackgroundTrackingMode mode) → Future<void>
override
startTracking() → Future<void>
override
stopBackgroundTracking() → Future<void>
override
stopTracking() → Future<void>
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

decodeEvent(Map<Object?, Object?> map) → CloudTrackingEvent?
decodePosition(Map<Object?, Object?> map) → TrackerPosition?
mapPlatformException(PlatformException e) → Exception
Native error codes → the plugin's exceptions.