TencentLocationErrorCode enum

腾讯定位 SDK Flutter 插件的错误码。

注意:枚举值按"分组分段 + 段内 Android / iOS / Harmony 顺序"排列。

Inheritance
Available extensions

Values

unsupportedOnThisPlatform → const TencentLocationErrorCode

当前平台不支持该 API 或参数组合。

invalidArgument → const TencentLocationErrorCode

参数非法。对应 Harmony 401

timeout → const TencentLocationErrorCode

超时。

nativeError → const TencentLocationErrorCode

兜底错误(未分类)。

privacyNotAgreed → const TencentLocationErrorCode

未同意隐私政策。对应 Android ret=4 / iOS init 返回 nil / Harmony 990100。

apiKeyInvalid → const TencentLocationErrorCode

API Key 无效。对应 Android ret=2。

sdkInitFailed → const TencentLocationErrorCode

SDK 初始化失败(so 加载失败等)。对应 Android ret=3。

permissionDenied → const TencentLocationErrorCode

权限被拒。对应 Android ret=1 / Harmony 201。

locationSwitchOff → const TencentLocationErrorCode

定位总开关已关闭。对应 Android STATUS_LOCATION_SWITCH_OFF(5) / Harmony 3301100。

alreadyStarted → const TencentLocationErrorCode

重复启动同一种定位。对应 Harmony 990200。

locationFailed → const TencentLocationErrorCode

定位失败。对应 Android ERROR_* / iOS TencentLBSLocationError* / Harmony 3301200 / 3301300。

geofenceInvalidRegion → const TencentLocationErrorCode

围栏区域非法(多边形点数不足、经纬度超范围等)。对应 Android ERROR_POLYGON_* / iOS InvalidParameter / Harmony 880100。

geofenceDistrictNotFound → const TencentLocationErrorCode

行政区划未找到。对应 Android ERROR_REQUEST_FAILED / iOS DistrictNotFound(6)

geofenceDuplicateId → const TencentLocationErrorCode

围栏 ID 重复。对应 iOS TencentLBSGeofenceErrorDuplicate(4)

geofenceNetworkFailed → const TencentLocationErrorCode

围栏网络请求失败。对应 iOS NetworkFailed(5)

geofenceLimitExceeded → const TencentLocationErrorCode

围栏数量超限。对应 Harmony 3301601。

geofenceIdNotFound → const TencentLocationErrorCode

围栏 ID 未找到。对应 Harmony 3301602。

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 TencentLocationErrorCode, provided by the TencentLocationErrorCodeCodec 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<TencentLocationErrorCode>
A constant List of the values in this enum, in order of their declaration.