AmapLocation class Null safety
高德定位 主类
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
addCircleGeoFence(
{required LatLng center, required double radius, String customId = '', List< GeoFenceActiveAction> activeActions = const [GeoFenceActiveAction.In, GeoFenceActiveAction.Out, GeoFenceActiveAction.Stayed]}) → Stream<GeoFenceEvent> - 创建圆形电子围栏
-
addDistrictGeoFence(
{required String keyword, String customId = '', List< GeoFenceActiveAction> activeActions = const [GeoFenceActiveAction.In, GeoFenceActiveAction.Out, GeoFenceActiveAction.Stayed]}) → Stream<GeoFenceEvent> - 创建行政区划电子围栏
-
addPoiGeoFence(
{required String keyword, String poiType = '', String city = '', int aroundRadius = 10, String customId = '', List< GeoFenceActiveAction> activeActions = const [GeoFenceActiveAction.In, GeoFenceActiveAction.Out, GeoFenceActiveAction.Stayed]}) → Stream<GeoFenceEvent> - 创POI电子围栏
-
addPolygonGeoFence(
{required List< LatLng> pointList, String customId = '', List<GeoFenceActiveAction> activeActions = const [GeoFenceActiveAction.In, GeoFenceActiveAction.Out, GeoFenceActiveAction.Stayed]}) → Stream<GeoFenceEvent> - 创建多边形电子围栏
-
checkClient(
) → Future< void> - 确保client不为空
-
disableBackgroundLocation(
bool var1) → Future< void> - 关闭后台定位
-
dispose(
) → Future< void> -
释放对象, 如果
AmapLocationDisposeMixin
不能满足需求时再使用这个方法 -
enableBackgroundLocation(
int id, BackgroundNotification bgNotification) → Future< void> - 开启后台定位
-
fetchLocation(
{LocationAccuracy mode = LocationAccuracy.Low, bool? needAddress, Duration? timeout}) → Future< Location> - 单次获取定位信息
-
init(
{required String iosKey}) → Future< void> - 初始化
-
initAndroidListener(
) → void -
listenLocation(
{LocationAccuracy mode = LocationAccuracy.Low, bool? needAddress, Duration? timeout, int? interval, double? distanceFilter}) → Stream< Location> - 连续获取定位信息
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
removeAllGeoFence(
) → Future< void> - 删除所有围栏
-
removeGeoFence(
GeoFence geoFence) → Future< void> - 删除单个围栏
-
stopLocation(
) → Future< void> - 停止定位
-
toString(
) → String -
A string representation of this object.
inherited
-
updatePrivacyAgree(
bool value) → Future< void> - 隐私是否已经同意
-
updatePrivacyShow(
bool value) → Future< void> - 隐私是否已经展示
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ AmapLocation
-
read / write