minSpeedChange property
double
get
minSpeedChange
Get the minimum speed change that triggers delivery.
Returns
- double: The minimum speed change in m/s that triggers delivery.
0or less means the trigger is disabled.
See also:
- minDistanceMeters - Trigger delivery on movement.
- minCourseChangeDegrees - Trigger delivery on course change.
- deliverOnFixQualityChange - Trigger delivery on fix-quality change.
Implementation
double get minSpeedChange {
final OperationResult resultString = objectMethod(
pointerId,
'PositionDataDeliveryPolicy',
'minSpeedChange',
);
return (resultString['result'] as num).toDouble();
}
set
minSpeedChange
(double value)
Set the minimum speed change that triggers delivery.
The change is measured against the last position that was delivered. 0
or less disables the trigger. The new value applies from the next sample.
A value that is not a number counts as 0, and an infinite value as the
largest finite threshold.
Parameters
value: (double) Minimum speed change in m/s.0or less disables the trigger.
See also:
- minSpeedChange getter - Check the current value.
- minDistanceMeters - Trigger delivery on movement.
- minCourseChangeDegrees - Trigger delivery on course change.
Implementation
set minSpeedChange(double value) {
objectMethod(
pointerId,
'PositionDataDeliveryPolicy',
'setMinSpeedChange',
args: DataDeliveryPolicy._clampedThreshold(value),
);
}