setIosDetectionInterval method

Future<void> setIosDetectionInterval(
  1. Duration interval
)

设置围栏检测频率间隔。

Platforms:

  • 🅰️ Android:不支持,抛出 TencentLocationError(错误码 unsupportedOnThisPlatform
  • 🍏 iOS:支持
  • 🔶 Harmony:不支持,抛出 TencentLocationError(错误码 unsupportedOnThisPlatform

Parameters:

  • interval:相邻两次围栏检测的最小时间间隔;传 Duration.zero 表示 每次位置更新都检测。

Implementation

Future<void> setIosDetectionInterval(Duration interval) =>
    _after(() => _platform.setIosDetectionInterval(_id, interval));