9 #import "BMKGeoFenceRegion.h" 11 @protocol BMKGeoFenceManagerDelegate;
14 typedef NS_OPTIONS(NSUInteger, BMKGeoFenceActiveAction)
16 BMKGeoFenceActiveActionNone = 0,
17 BMKGeoFenceActiveActionInside = 1 << 0,
18 BMKGeoFenceActiveActionOutside = 1 << 1,
19 BMKGeoFenceActiveActionStayed = 1 << 2,
23 FOUNDATION_EXPORT NSErrorDomain
const _Nonnull BMKGeoFenceErrorDomain;
26 typedef NS_ENUM(NSInteger, BMKGeoFenceErrorCode) {
27 BMKGeoFenceErrorUnknown = 1,
28 BMKGeoFenceErrorInvalidParameter = 2,
29 BMKGeoFenceErrorFailureConnection = 3,
30 BMKGeoFenceErrorFailureAuth = 4,
31 BMKGeoFenceErrorNoValidFence = 5,
32 BMKGeoFenceErroFailureLocating = 6,
41 @property (nonatomic, weak, nullable) id<BMKGeoFenceManagerDelegate>
delegate;
45 @property (nonatomic, assign) BMKGeoFenceActiveAction
activeAction;
63 - (void)addCircleRegionForMonitoringWithCenter:(CLLocationCoordinate2D)center radius:(CLLocationDistance)radius coorType:(BMKLocationCoordinateType)type customID:(NSString * _Nullable)customID;
73 - (void)addPolygonRegionForMonitoringWithCoordinates:(CLLocationCoordinate2D * _Nonnull)coordinates count:(NSInteger)count coorType:(BMKLocationCoordinateType)type customID:(NSString * _Nullable)customID;
81 - (NSArray * _Nullable)geoFenceRegionsWithCustomID:(NSString * _Nullable)customID;
95 - (void)removeGeoFenceRegionsWithCustomID:(NSString * _Nullable)customID;
109 @protocol BMKGeoFenceManagerDelegate <NSObject>
地理围栏基类,不可直接使用
Definition: BMKGeoFenceRegion.h:26
void removeAllGeoFenceRegions()
移除所有围栏
id< BMKGeoFenceManagerDelegate > delegate
实现了 BMKGeoFenceManagerDelegate 协议的类指针。
Definition: BMKGeoFenceManager.h:41
BOOL pausesLocationUpdatesAutomatically
指定定位是否会被系统自动暂停。默认为NO。
Definition: BMKGeoFenceManager.h:49
BMKGeoFenceActiveAction activeAction
需要进行通知的行为,默认为BMKGeoFenceActiveActionInside。
Definition: BMKGeoFenceManager.h:45
BOOL allowsBackgroundLocationUpdates
是否允许后台定位。默认为NO。只在iOS 9.0及之后起作用。设置为YES的时候必须保证 Background Modes 中的 Lo...
Definition: BMKGeoFenceManager.h:53
地理围栏管理类
Definition: BMKGeoFenceManager.h:37