FlutterAmapLocation class
高德定位类
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Methods
-
getLocation(
) → Future< void> - get location continue, 连续定位 [...]
-
getLocationOnce(
) → Future< void> - get location once, 定位一次 [...]
-
listenLocation(
EventHandler onEvent, EventHandler onError) → dynamic - set stream event callback, 设置StreamChannel的回调方法 [...]
-
setHttpTimeOut(
int timeout) → dynamic - 设置定位请求超时时间,默认是30000毫秒(30秒) [...]
-
setInterval(
int interval) → dynamic - set location interval, 设置定位时间间隔 [...]
-
setLocationCacheEnable(
bool isLocationCacheEnable) → dynamic - 设置是否开启定位缓存机制,默认为开启 [...]
-
setLocationMode(
AMapLocationMode mode) → dynamic - set location mode, 设置定位模式, 默认是高精度定位模式 [...]
-
setLocationPurpose(
AMapLocationPurpose purpose) → dynamic - set location purpose, 设置定位场景模式 [...]
-
setMockEnable(
bool isMockEnable) → dynamic - 设置是否允许软件模拟位置,默认是允许 [...]
-
setNeedAddress(
bool isNeedAddress) → dynamic - set return address info or not, 设置是否返回地址信息,默认是返回地址信息 [...]
-
setOnceLocation(
bool isOnceLocation) → dynamic - set location once, 设置一次定位 [...]
-
setOnceLocationLatest(
bool isOnceLocationLatest) → dynamic - 设置一次定位,获取最近3秒内精度最高的一次定位结果 [...]
-
startLocation(
) → Future< void> - start location, 开始定位 [...]
-
stopLocation(
) → Future< void> - stop location, 停止定位 [...]
Constants
- EVENT_CHANNEL_NAME → const String
-
"bg7lgb/amap_location_stream"
- METHOD_CHANNEL_NAME → const String
-
"bg7lgb/amap_location"