PositionDataDeliveryPolicy class Sensor Data Source

Delivers a position update when the position changes meaningfully.

Works with DataType.position and DataType.improvedPosition. An update is delivered when any one of these happens: the fix quality changes, the position moves by at least minDistanceMeters, the speed changes by at least minSpeedChange, or the course changes by at least minCourseChangeDegrees. With no threshold set, throttleInterval alone decides.

Inheritance

Properties

dataType → DataType
The data type this policy applies to.
no setterinherited
deliverOnFixQualityChange ↔ bool
Get whether a fix-quality change triggers delivery.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hasRegisteredAutoReleaseObject ↔ bool
getter/setter pairinherited
minCourseChangeDegrees ↔ double
Get the minimum course change that triggers delivery.
getter/setter pair
minDistanceMeters ↔ double
Get the minimum movement that triggers delivery.
getter/setter pair
minSpeedChange ↔ double
Get the minimum speed change that triggers delivery.
getter/setter pair
pointerId → int
The pointer ID of the native object
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
throttleInterval ↔ Duration
Get the minimum time between delivered updates.
getter/setter pairinherited

Methods

dispose() → void
Disposes the native object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAutoReleaseObject(int pointerId) → void
Registers an object for auto release.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

create({required DataType dataType, Duration throttleInterval = Duration.zero, double minDistanceMeters = 0, double minSpeedChange = 0, double minCourseChangeDegrees = 0, bool deliverOnFixQualityChange = true}) → PositionDataDeliveryPolicy?
Create a policy for dataType, which must be DataType.position or DataType.improvedPosition.
override