BLUCentralManagerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | BLUCentralManager.h |
Overview
The BLUCentralManagerDelegate protocol defines the methods that a delegate of a BLUCentralManagerDelegate object must adopt. The optional methods of the protocol allow the delegate to monitor the discovery, connectivity, and retrieval of peripheral devices.
– bluCentral:didDiscoverBeacons:
Invoked when the central manager discovers a BlueBeacon while scanning.
- (void)bluCentral:(nonnull BLUCentralManager *)central didDiscoverBeacons:(nonnull NSArray *)beacons
Parameters
central |
The central manager providing the update. |
---|---|
beacons |
The array of the discovered BlueBeacons. |
Declared In
BLUCentralManager.h
– bluCentral:didConnectBeacon:error:
Invoked when the connection procedure with a BlueBeacon is completed, if the connection fails the error parameter is set.
- (void)bluCentral:(nonnull BLUCentralManager *)central didConnectBeacon:(nonnull BLUBeacon *)beacon error:(nullable NSError *)error
Parameters
central |
The central manager providing this information. |
---|---|
beacon |
The BlueBeacon that has been connected or is trying to connect to the system. |
error |
If an error occurred, the cause of the failure. |
Declared In
BLUCentralManager.h
– bluCentral:didDisconnectBeacon:error:
Invoked when an existing connection with a BlueBeacon is torn down.
- (void)bluCentral:(nonnull BLUCentralManager *)central didDisconnectBeacon:(nonnull BLUBeacon *)beacon error:(nullable NSError *)error
Parameters
central |
The central manager providing this information. |
---|---|
beacon |
The BlueBeacon that has been disconnected. |
error |
If an error occurred, the cause of the failure. |
Declared In
BLUCentralManager.h