地理围栏管理类
更多...
#import <BMKGeoFenceManager.h>
◆ addCircleRegionForMonitoringWithCenter:radius:coorType:customID:()
- (void) addCircleRegionForMonitoringWithCenter: |
|
(CLLocationCoordinate2D) |
center |
radius: |
|
(CLLocationDistance) |
radius |
coorType: |
|
(BMKLocationCoordinateType) |
type |
customID: |
|
(NSString *_Nullable) |
customID |
|
|
| |
添加一个圆形围栏
- 参数
-
center | 围栏的中心点经纬度坐标 |
radius | 围栏的半径,单位:米,要求大于0 |
type | 围栏的坐标系类型 |
customID | 用户自定义ID,可选,SDK原值返回 |
◆ addPolygonRegionForMonitoringWithCoordinates:count:coorType:customID:()
- (void) addPolygonRegionForMonitoringWithCoordinates: |
|
(CLLocationCoordinate2D *_Nonnull) |
coordinates |
count: |
|
(NSInteger) |
count |
coorType: |
|
(BMKLocationCoordinateType) |
type |
customID: |
|
(NSString *_Nullable) |
customID |
|
|
| |
根据经纬度坐标数据添加一个闭合的多边形围栏,点与点之间按顺序尾部相连, 第一个点与最后一个点相连
- 参数
-
coordinates | 经纬度坐标点数据,coordinates对应的内存会拷贝,调用者负责该内存的释放 |
count | 经纬度坐标点的个数,不可小于3个 |
type | 围栏的坐标系类型 |
customID | 用户自定义ID,可选,SDK原值返回 |
◆ geoFenceRegionsWithCustomID:()
- (NSArray * _Nullable) geoFenceRegionsWithCustomID: |
|
(NSString *_Nullable) |
customID |
|
根据customID获得指定的围栏,如果customID传nil,则返回全部围栏
- 参数
-
customID | 用户执行添加围栏函数时传入的customID |
- 返回
- 获得的围栏构成的数组,如果没有结果,返回nil
◆ removeGeoFenceRegionsWithCustomID:()
- (void) removeGeoFenceRegionsWithCustomID: |
|
(NSString *_Nullable) |
customID |
|
移除指定customID的围栏
- 参数
-
customID | 用户执行添加围栏函数时传入的customID |
◆ removeTheGeoFenceRegion:()
该类的文档由以下文件生成: