BRTBeaconManagerDelegate Protocol Reference
Conforms to | NSObject |
Declared in | BRTBeaconManager.h |
Tasks
-
– beaconManager:didRangeBeacons:inRegion:
-
– beaconManager:rangingBeaconsDidFailForRegion:withError:
-
– beaconManager:monitoringDidFailForRegion:withError:
-
– beaconManager:didEnterRegion:
-
– beaconManager:didExitRegion:
-
– beaconManager:didDetermineState:forRegion:
-
– beaconManagerDidStartAdvertising:error:
-
– beaconManager:didDiscoverBeacon:
-
– beaconManagerDidFailDiscovery:
Instance Methods
beaconManager:didDetermineState:forRegion:
只能在 AppDelegate 实现
- (void)beaconManager:(BRTBeaconManager *)manager didDetermineState:(CLRegionState)state forRegion:(BRTBeaconRegion *)region
Parameters
- manager
Beacon 管理器
- state
Beacon 区域状态
- region
Beacon 区域
Return Value
void
Discussion
只能在 AppDelegate 实现
在调用startMonitoringForRegion:方法,当beacon区域状态变化会触发该方法
Declared In
BRTBeaconManager.h
beaconManager:didDiscoverBeacon:
在该区域使用CoreBluetooth framework发现BRTBeacon将回调该方法
- (void)beaconManager:(BRTBeaconManager *)manager didDiscoverBeacon:(BRTBeacon *)beacon
Return Value
void
Discussion
在该区域使用CoreBluetooth framework发现BRTBeacon将回调该方法
Declared In
BRTBeaconManager.h
beaconManager:didEnterRegion:
只能在 AppDelegate 实现
- (void)beaconManager:(BRTBeaconManager *)manager didEnterRegion:(BRTBeaconRegion *)region
Parameters
- manager
Beacon 管理器
- region
Beacon 区域
Return Value
void
Discussion
只能在 AppDelegate 实现
在区域监听中,iOS设备进入beacon设备区域触发该方法
Declared In
BRTBeaconManager.h
beaconManager:didExitRegion:
只能在 AppDelegate 实现
- (void)beaconManager:(BRTBeaconManager *)manager didExitRegion:(BRTBeaconRegion *)region
Parameters
- manager
Beacon 管理器
- region
Beacon 区域
Return Value
void
Discussion
只能在 AppDelegate 实现
在区域监听中,iOS设备离开beacon设备区域触发该方法
Declared In
BRTBeaconManager.h
beaconManager:didRangeBeacons:inRegion:
范围扫描触发的回调方法 检索出所有的beacon设备,每个设备都是一个CLBeacon实例.
- (void)beaconManager:(BRTBeaconManager *)manager didRangeBeacons:(NSArray *)beacons inRegion:(BRTBeaconRegion *)region
Parameters
- manager
Beacon 管理器
- beacons
所有的beacon设备,即CLBeacon实体
- region
Beacon 区域
Return Value
void
Discussion
范围扫描触发的回调方法 检索出所有的beacon设备,每个设备都是一个CLBeacon实例.
Declared In
BRTBeaconManager.h
beaconManager:monitoringDidFailForRegion:withError:
只能在 AppDelegate 实现
- (void)beaconManager:(BRTBeaconManager *)manager monitoringDidFailForRegion:(BRTBeaconRegion *)region withError:(NSError *)error
Parameters
- manager
Beacon 管理器
- region
Beacon 区域
- error
错误信息
Return Value
void
Discussion
只能在 AppDelegate 实现
区域监听失败触发的回调方法,以及关联的错误信息
Declared In
BRTBeaconManager.h
beaconManager:rangingBeaconsDidFailForRegion:withError:
范围扫描失败触发的回调方法,已经关联的错误信息
- (void)beaconManager:(BRTBeaconManager *)manager rangingBeaconsDidFailForRegion:(BRTBeaconRegion *)region withError:(NSError *)error
Parameters
- manager
Beacon 管理器
- region
Beacon 区域
- error
错误信息
Return Value
void
Discussion
范围扫描失败触发的回调方法,已经关联的错误信息
Declared In
BRTBeaconManager.h