XbrLocation class

Constructors

XbrLocation({String? fullAccuracyPurposeKey})

Properties

backgroundGaodeLocation GaodeLocation?
getter/setter pair
clientMap Map<String, GaodeLocation>
getter/setter pair
currentLocation LocationInfo?
工厂对象
getter/setter pair
fullAccuracyPurposeKey String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroyBackgroundLocation() → void
摧毁后台进程定位
destroyLocation({required String clientKey}) → void
摧毁持续定位
execOnceLocation({String clientKey = "onceLocation", AMapLocationMode locationMode = AMapLocationMode.Hight_Accuracy, DesiredAccuracy desiredAccuracy = DesiredAccuracy.Best, required LocationCallback callback}) → void
获取一次定位
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startBackgroundLocation({int interval = 2000, double distance = -1, AMapLocationMode locationMode = AMapLocationMode.Hight_Accuracy, DesiredAccuracy desiredAccuracy = DesiredAccuracy.Best, required LocationCallback callback}) → void
开启后台进程定位
startTimeLocation({String clientKey = "singleTimeLocation", int interval = 2000, double distance = -1, AMapLocationMode locationMode = AMapLocationMode.Hight_Accuracy, DesiredAccuracy desiredAccuracy = DesiredAccuracy.Best, required LocationCallback callback}) → void
开始定位
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

instance() XbrLocation