BRTBeaconDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | BRTBeacon.h |
Overview
BRTBeaconDelegate 定义了 beacon 连接相关的委托方法,beacon 的连接是一个异步操作,因此你只需要实现例如beaconDidDisconnect:相关方法,它们会被自动回调.
– beaconConnection:withError:
beacon连接产生错误回调该方法.
- (void)beaconConnection:(BRTBeacon *)beacon withError:(NSError *)error
Parameters
beacon |
关联的beacon实体 |
---|---|
error |
错误的描述信息 |
Discussion
beacon连接产生错误回调该方法.
Declared In
BRTBeacon.h
– beaconDidDisconnect:withError:
beacon与设备已经断开连接回调该方法
- (void)beaconDidDisconnect:(BRTBeacon *)beacon withError:(NSError *)error
Parameters
beacon |
关联的beacon实体 |
---|---|
error |
错误的描述信息 |
Discussion
beacon与设备已经断开连接回调该方法
Declared In
BRTBeacon.h
– beacon:didUpdateValue:error:
beacon 050x读写参数回调
- (void)beacon:(BRTBeacon *)beacon didUpdateValue:(NSData *)value error:(NSError *)error
Parameters
beacon |
关联的beacon实体 |
---|---|
error |
返回错误信息 |
data |
返回数据信息 |
Discussion
beacon 050x读写参数回调
Declared In
BRTBeacon.h