TencentGeofenceEvent class

围栏触发事件。

映射来源

  • Android:PendingIntent extras 中的 fence_tag + transition
  • iOS delegate:didEnterRegion / didExitRegion / didStayInRegion:forDuration:
  • Harmony:TencentGeofenceEvent { id, event }

Constructors

TencentGeofenceEvent({required String geofenceId, required GeofenceTransition transition, TencentLocation? location, Duration? stayedDuration, Map<String, Object?>? userInfo})
const
TencentGeofenceEvent.fromMap(Map map)
factory

Properties

geofenceId String
对应的围栏 ID。
final
hashCode int
The hash code for this object.
no setterinherited
location TencentLocation?
触发时位置(部分平台可能为 null)。
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stayedDuration Duration?
GeofenceTransition.dwell 事件的已停留时长;其他事件为 null
final
transition GeofenceTransition
事件类型。
final
userInfo Map<String, Object?>?
创建围栏时附带的 userInfo(iOS / Dart 层透传)。
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