removeGeofence method
- String id
按 ID 移除单个围栏。
Platforms:
- 🅰️ Android:支持
- 🍏 iOS:支持
- 🔶 Harmony:支持
Parameters:
id:围栏的唯一标识符(即 TencentGeofence.id)。
Throws:
当 ID 不存在时抛出 TencentLocationError(错误码 geofenceIdNotFound)。
Implementation
Future<void> removeGeofence(String id) =>
_after(() => _platform.removeGeofence(_id, id));