GeofenceTransition enum
围栏事件类型。
映射来源:
- Android:系统
LocationManager.addProximityAlert+ Intent extraKEY_PROXIMITY_ENTERING(true=enter / false=exit),不支持 dwell - iOS
TencentLBSGeofenceActiveAction位掩码:None=0, Enter=1, Exit=2, Stayed=4 - Harmony
GeofenceEvent.ENTER=1 / EXIT=2 / DWELL=4(仅圆形支持)
- Inheritance
- Available extensions
Values
- enter → const GeofenceTransition
-
进入围栏。
- exit → const GeofenceTransition
-
离开围栏。
- dwell → const GeofenceTransition
-
在围栏内停留一段时间。
- iOS:由
TencentGeofence.dwellDuration决定(默认 600s,最小 60s) - Android:不支持(原生 dwell 固定 10 分钟且不可配置)。
传入
dwell时该事件被忽略,控制台输出 warning,addGeofence仍然成功并按 enter + exit 监听 - Harmony:由系统决定
- iOS:由
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wireName → String
-
Available on GeofenceTransition, provided by the GeofenceTransitionCodec extension
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
GeofenceTransition> - A constant List of the values in this enum, in order of their declaration.