geofenceRegionsContainingCoordinate method
- TencentLocationCoordinate coordinate
获取包含指定坐标的所有围栏。
Platforms:
- 🅰️ Android:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform) - 🍏 iOS:支持
- 🔶 Harmony:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform)
Parameters:
coordinate:待检测的坐标,坐标系需与围栏自身的坐标系一致。
Returns:
- 所有包含该坐标的围栏列表;若没有围栏命中则返回空列表。
Implementation
Future<List<TencentGeofence>> geofenceRegionsContainingCoordinate(
TencentLocationCoordinate coordinate) =>
_after(() =>
_platform.geofenceRegionsContainingCoordinate(_id, coordinate));