TencentGeofenceManager class

腾讯地理围栏管理器。

支持创建多个实例,各实例的围栏与监听互相独立。

Constructors

TencentGeofenceManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
本实例的唯一 ID。
no setter
onError Stream<TencentLocationError>
围栏操作错误流。
no setter
onEvent Stream<TencentGeofenceEvent>
围栏触发事件流(进入 / 离开 / 停留 / 状态变化等)。
no setter
onGeofenceCreated Stream<TencentGeofenceCreatedEvent>
行政区围栏异步创建完成事件流。
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addGeofence(TencentGeofence fence) Future<void>
添加围栏。
dispose() Future<void>
释放本实例资源。
geofenceRegionsContainingCoordinate(TencentLocationCoordinate coordinate) Future<List<TencentGeofence>>
获取包含指定坐标的所有围栏。
getAllGeofences() Future<List<TencentGeofence>>
获取本实例上所有有效围栏。
isCoordinateInside(String id, TencentLocationCoordinate coordinate) Future<bool>
判断指定坐标是否位于指定围栏内。
isMonitoring() Future<bool>
查询围栏监控当前是否正在运行。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseMonitoring() Future<void>
暂停围栏监控(保留围栏数据,仅暂停位置检测)。
removeAllGeofences() Future<void>
移除本实例上的所有围栏。
removeGeofence(String id) Future<void>
按 ID 移除单个围栏。
resumeMonitoring() Future<void>
恢复已暂停的围栏监控。
setIosAdaptiveDistanceFilterEnabled(bool enabled) Future<void>
是否启用自适应距离过滤器(智能频率控制)。
setIosAllowsBackgroundLocationUpdates(bool enabled) Future<void>
是否允许后台围栏位置更新。
setIosDesiredAccuracy(IosDesiredAccuracy accuracy) Future<void>
设置围栏检测使用的期望定位精度。
setIosDetectionInterval(Duration interval) Future<void>
设置围栏检测频率间隔。
setIosDistanceFilter(double meters) Future<void>
设置围栏检测使用的最小更新距离(米)。
startMonitoring() Future<void>
开始监控本实例上已添加的所有围栏。
stopMonitoring() Future<void>
停止监控所有围栏。
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited