removeGeofence method

Future<void> removeGeofence(
  1. String id
)

按 ID 移除单个围栏。

Platforms:

  • 🅰️ Android:支持
  • 🍏 iOS:支持
  • 🔶 Harmony:支持

Parameters:

Throws: 当 ID 不存在时抛出 TencentLocationError(错误码 geofenceIdNotFound)。

Implementation

Future<void> removeGeofence(String id) =>
    _after(() => _platform.removeGeofence(_id, id));