AmapLocation class

高德定位 主类

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

addCircleGeoFence({LatLng center, double radius, String customId = '', List<GeoFenceActiveAction> activeActions = const [GeoFenceActiveAction.In, GeoFenceActiveAction.Out, GeoFenceActiveAction.Stayed]}) Stream<GeoFenceEvent>
创建圆形电子围栏
inherited
addDistrictGeoFence({String keyword, String customId = '', List<GeoFenceActiveAction> activeActions = const [GeoFenceActiveAction.In, GeoFenceActiveAction.Out, GeoFenceActiveAction.Stayed]}) Stream<GeoFenceEvent>
创建行政区划电子围栏
inherited
addPoiGeoFence({String keyword, String poiType = '', String city = '', int aroundRadius = 10, String customId = '', List<GeoFenceActiveAction> activeActions = const [GeoFenceActiveAction.In, GeoFenceActiveAction.Out, GeoFenceActiveAction.Stayed]}) Stream<GeoFenceEvent>
创POI电子围栏
inherited
addPolygonGeoFence({List<LatLng> pointList, String customId = '', List<GeoFenceActiveAction> activeActions = const [GeoFenceActiveAction.In, GeoFenceActiveAction.Out, GeoFenceActiveAction.Stayed]}) Stream<GeoFenceEvent>
创建多边形电子围栏
inherited
checkClient() Future<void>
确保client不为空
inherited
disableBackgroundLocation(bool var1) Future<void>
关闭后台定位
inherited
dispose() Future<void>
释放对象, 如果AmapLocationDisposeMixin不能满足需求时再使用这个方法
inherited
enableBackgroundLocation(int id, BackgroundNotification bgNotification) Future<void>
开启后台定位
inherited
fetchLocation({LocationAccuracy mode = LocationAccuracy.Low, bool needAddress, Duration timeout}) Future<Location>
单次获取定位信息 [...]
inherited
initAndroidListener() → void
inherited
listenLocation({LocationAccuracy mode = LocationAccuracy.Low, bool needAddress, Duration timeout, int interval, double distanceFilter}) Stream<Location>
连续获取定位信息 [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeAllGeoFence() Future<void>
删除所有围栏
inherited
removeGeoFence(GeoFence geoFence) Future<void>
删除单个围栏
inherited
requireAlwaysAuth() Future<void>
请求后台定位 *仅iOS
inherited
stopLocation() Future<void>
停止定位
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

instance AmapLocation
read / write