isCoordinateInside method
- String id,
- TencentLocationCoordinate coordinate
判断指定坐标是否位于指定围栏内。
Platforms:
- 🅰️ Android:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform) - 🍏 iOS:支持
- 🔶 Harmony:不支持,抛出
TencentLocationError(错误码unsupportedOnThisPlatform)
Parameters:
id:围栏的唯一标识符。coordinate:待检测的坐标,坐标系需与围栏自身的坐标系一致。
Returns:
true表示坐标位于围栏内,否则返回false。
Implementation
Future<bool> isCoordinateInside(
String id, TencentLocationCoordinate coordinate) =>
_after(() => _platform.isCoordinateInside(_id, id, coordinate));