TencentLocationRequest class

定位请求。

使用 TencentLocationRequest.create() 创建默认请求,然后链式设置通用字段, 通过 .android((a) => ...) / .ios((i) => ...) / .harmony((h) => ...) 配置平台专属字段。

Constructors

TencentLocationRequest.create()
创建默认请求。
factory

Properties

allowDirectionSensor bool
是否启用传感器方向。默认 false
getter/setter pair
androidExtension TencentLocationRequestAndroidExtension
只读访问(给 Utils / 测试 / 序列化用)。
no setter
coordinateType CoordinateType
坐标系。默认 CoordinateType.gcj02
getter/setter pair
harmonyExtension TencentLocationRequestHarmonyExtension
no setter
hashCode int
The hash code for this object.
no setterinherited
interval Duration
连续定位回调间隔。默认 5 秒。
getter/setter pair
iosExtension TencentLocationRequestIosExtension
no setter
requestLevel RequestLevel
返回等级。默认 RequestLevel.adminArea
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

android(void configure(TencentLocationRequestAndroidExtension ext)) TencentLocationRequest
copy() TencentLocationRequest
深拷贝(对应 Android TencentLocationRequest.copy(to, from))。
harmony(void configure(TencentLocationRequestHarmonyExtension ext)) TencentLocationRequest
ios(void configure(TencentLocationRequestIosExtension ext)) TencentLocationRequest
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAllowDirectionSensor(bool value) TencentLocationRequest
setCoordinateType(CoordinateType value) TencentLocationRequest
setInterval(Duration value) TencentLocationRequest
setRequestLevel(RequestLevel value) TencentLocationRequest
toMap() Map<String, Object?>
序列化(形如 {common:{}, android:{}, ios:{}, harmony:{}})。
toString() String
A string representation of this object.
inherited

Operators

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