TencentGeofenceCreatedEvent class
行政区围栏异步创建完成事件。
触发场景:district(行政区)围栏是异步创建的,addGeofence 的 Future
成功仅表示"已提交";本事件在该围栏真正创建完成(已加入围栏列表)时发出。
创建失败走 TencentLocationError 事件流(geofenceDistrictNotFound /
geofenceInvalidRegion 等),不触发本事件。circle / polygon 为同步添加,
不触发本事件。
Constructors
-
TencentGeofenceCreatedEvent({required String geofenceId, Map<
String, Object?> ? userInfo}) -
const
- TencentGeofenceCreatedEvent.fromMap(Map map)
-
factory
Properties
- geofenceId → String
-
已创建围栏的 id,与 TencentGeofenceManager.addGeofence 传入的
TencentGeofence.id 一致(即开发者写入的原始 tag)。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
userInfo
→ Map<
String, Object?> ? -
添加围栏时传入的
userInfo;平台拿不到时为null。final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited