SDK для работы с BunchBeacon
 Указатель Классы Функции Свойства Группы Страницы
BNCHBunchManager.h
1 //
2 // BNCHBunchManager.h
3 // BunchSDK
4 //
5 // Version : 1.1.0
6 // Created by Igor Parfenov on 01/01/14.
7 // Copyright (c) 2014 Bunch. All rights reserved.
8 //
9 
10 #import <Foundation/Foundation.h>
11 #import <CoreLocation/CoreLocation.h>
12 #import "BNCHBunchRegion.h"
13 #import "BNCHMutableBunch.h"
14 
15 @class BNCHBunchManager;
16 
17 
18 
25 @protocol BNCHBunchManagerDelegate <NSObject>
26 
27 @optional
28 
39 - (void)bunchManager:(BNCHBunchManager *)manager didRangeBunches:(NSArray *)bunches inRegion:(BNCHBunchRegion *)region;
40 
41 
52 - (void)bunchManager:(BNCHBunchManager *)manager didRangeSecuredBunches:(NSArray *)bunches inRegion:(BNCHBunchRegion *)region;
53 
54 
64 -(void)bunchManager:(BNCHBunchManager *)manager rangingBunchesDidFailForRegion:(BNCHBunchRegion *)region withError:(NSError *)error;
65 
66 
75 -(void)bunchManager:(BNCHBunchManager *)manager didEnterRegion:(BNCHBunchRegion *)region;
76 
85 -(void)bunchManager:(BNCHBunchManager *)manager didExitRegion:(BNCHBunchRegion *)region;
86 
96 -(void)bunchManager:(BNCHBunchManager *)manager monitoringDidFailForRegion:(BNCHBunchRegion *)region withError:(NSError *)error;
97 
107 -(void)bunchManager:(BNCHBunchManager *)manager didDetermineState:(CLRegionState)state
108  forRegion:(BNCHBunchRegion *)region;
109 
110 
120 - (void)bunchManager:(BNCHBunchManager *)manager didMaintainBunch:(BNCHMutableBunch *)bunch inRegion:(BNCHBunchRegion *)region;
121 
131 - (void)bunchManager:(BNCHBunchManager *)manager didConnectBunch:(BNCHMutableBunch *)bunch;
132 
142 - (void)bunchManager:(BNCHBunchManager *)manager didFailToConnectBunch:(BNCHMutableBunch *)bunch error:(NSError *)error;
143 
153 - (void)bunchManager:(BNCHBunchManager *)manager didDisconnectBunch:(BNCHMutableBunch *)bunch error:(NSError *)error;
154 
165 - (void)bunchManager:(BNCHBunchManager *)manager didReceiveContent:(NSData *)data forRegion:(BNCHBunchRegion*)region withError:(NSError*)error;
166 
167 
168 @end
169 
170 
171 
178 @interface BNCHBunchManager : NSObject
179 
181 
182 @property (nonatomic, weak) id <BNCHBunchManagerDelegate> delegate;
183 
187 @property(readonly, nonatomic) NSSet *monitoredRegions;
188 
192 @property(readonly, nonatomic) NSSet *rangedRegions;
193 
197 @property (nonatomic) BOOL avoidUnknownStateBunches;
198 
199 
201 
211 -(void)startRangingBunchesInRegion:(BNCHBunchRegion*)region;
212 
220 -(void)stopRangingBunchesInRegion:(BNCHBunchRegion*)region;
221 
222 
234 -(void)startMonitoringForRegion:(BNCHBunchRegion*)region;
235 
236 
244 -(void)stopMonitoringForRegion:(BNCHBunchRegion *)region;
245 
253 -(void)requestStateForRegion:(BNCHBunchRegion *)region;
254 
256 
267 -(void)startMaintainingBunchesInRegion:(BNCHBunchRegion *)region;
268 
276 -(void)stopMaintainingBunchesInRegion:(BNCHBunchRegion *)region;
277 
286 - (void)connectBunch:(BNCHMutableBunch *)bunch;
287 
295 - (void)cancelBunchConnection:(BNCHMutableBunch *)bunch;
296 
297 
305 - (void)requestContentForRegion:(BNCHBunchRegion *)region;
306 
307 
308 @end
309 
Definition: BNCHBunchManager.h:178
NSSet * rangedRegions
Definition: BNCHBunchManager.h:192
Definition: BNCHMutableBunch.h:74
BOOL avoidUnknownStateBunches
Definition: BNCHBunchManager.h:197
Definition: BNCHBunchRegion.h:41
Definition: BNCHBunchManager.h:25
NSSet * monitoredRegions
Definition: BNCHBunchManager.h:187