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. 0 or less means the trigger is disabled.

See also:

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. 0 or less disables the trigger.

See also:

Implementation

set minSpeedChange(double value) {
  objectMethod(
    pointerId,
    'PositionDataDeliveryPolicy',
    'setMinSpeedChange',
    args: DataDeliveryPolicy._clampedThreshold(value),
  );
}