alarmDistance property

double get alarmDistance

Distance threshold in meters for triggering landmark and overlay item alarms.

Alarms are triggered when the device approaches within this distance of a monitored landmark or overlay item. The default threshold depends on the SDK configuration.

Use landmarkAlarms and overlayItemAlarms for retrieving active alarms or check the values provided in the AlarmListener callbacks.

Returns

  • double: Distance in meters.

Implementation

double get alarmDistance {
  final OperationResult result = objectMethod(
    _pointerId,
    'AlarmService',
    'getAlarmDistance',
  );

  return result['result'];
}
set alarmDistance (double distance)

Sets the distance threshold in meters for triggering landmark and overlay item alarms.

Parameters

  • distance: Distance in meters. Alarms will trigger when within this proximity to monitored items.

Implementation

set alarmDistance(final double distance) {
  objectMethod(
    _pointerId,
    'AlarmService',
    'setAlarmDistance',
    args: distance,
  );
}