FlAMapGeoFence class
Constructors
- FlAMapGeoFence()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addCircle(
{required LatLng latLng, required double radius, required String customID}) → Future< bool> - 创建圆形围栏 latLng 经纬度 围栏中心点 radius 要创建的围栏半径 ,半径无限制,单位米 customID 与围栏关联的自有业务Id
-
addCustom(
{required List< LatLng> latLng, required String customID}) → Future<bool> - 创建多边形围栏 latLngs 多个经纬度点 最少3个点 radius 要创建的围栏半径 ,半径无限制,单位米 customID 与围栏关联的自有业务Id
-
addDistrict(
{required String keyword, required String customID}) → Future< bool> - 创建行政区划围栏 根据关键字创建围栏 keyword 行政区划关键字 例如:朝阳区 customID 与围栏关联的自有业务Id
-
addLatLng(
AMapGeoFenceLatLngModel model) → Future< bool> - 添加高德经纬度地理围栏
-
addPOI(
AMapPoiModel model) → Future< bool> - 添加高德POI地理围栏
-
dispose(
) → Future< bool> - 销毁地理围栏 ios 关闭代理,移出所有的GeoFence android 关闭广播,移出所有的GeoFence
-
getAll(
{String? customID}) → Future< List< AMapGeoFenceModel> > - 获取所有围栏信息 在ios customID !=null 获取指定围栏信息
-
initialize(
GeoFenceActivateAction action, [bool allowsBackgroundLocationUpdates = false]) → Future< bool> - 初始化地理围栏 allowsBackgroundLocationUpdates 仅支持 ios 在iOS9及之后版本的系统中, 如果您希望程序在后台持续检测围栏触发行为,需要保证manager 的 allowsBackgroundLocationUpdates 为YES, 设置为YES的时候必须保证 Background Modes 中的 Location updates 处于选中状态,否则会抛出异常。 ios 添加代理
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
{String? customID}) → Future< bool> - 暂停监听围栏 customID !=null 暂停监听指定customID 的围栏 仅支持ios android 不会关闭广播 ios 不会关闭代理
-
remove(
{String? customID}) → Future< bool> - 删除地理围栏 customID !=null 删除指定围栏 否则删除所有围栏
-
start(
{String? customID, EventHandlerAMapGeoFenceStatus? onGeoFenceChanged}) → Future< bool> - 开启围栏状态监听 customID !=null 监听指定customID 的围栏 仅支持ios android 第一次 调用 开启广播监听
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited