BLUConfigurableBeaconDelegate Protocol Reference

Conforms to NSObject
Declared in BLUConfigurableBeacon.h

Overview

The BLUConfigurableBeaconDelegate protocol defines the methods that a delegate of a BLUConfigurableBeacon object must adopt.

The configurable beacon delegate provides all important events related to beacon connection and configuration.

Delegate methods

– configurableBeaconDidConnect: required method

Invoked when a connection to the beacon has been established.

- (void)configurableBeaconDidConnect:(BLUConfigurableBeacon *)configurableBeacon

Parameters

configurableBeacon

The beacon that has been connected.

Discussion

Invoked when a connection to the beacon has been established.

Declared In

BLUConfigurableBeacon.h

– configurableBeacon:didChangeState:

Invoked whenever the connection state of the beacon has changed.

- (void)configurableBeacon:(BLUConfigurableBeacon *)configurableBeacon didChangeState:(BLUConfigurableBeaconConnectionState)state

Parameters

configurableBeacon

The beacon that just changed its connection state.

state

The new connection state of the beacon.

Discussion

Invoked whenever the connection state of the beacon has changed.

Declared In

BLUConfigurableBeacon.h

– configurableBeacon:didDisconnectWithError:

Invoked whenever the connection to the beacon has been canceled.

- (void)configurableBeacon:(BLUConfigurableBeacon *)configurableBeacon didDisconnectWithError:(nullable NSError *)error

Parameters

configurableBeacon

The beacon that has been disconnected.

error

The cause of the disconnection. Will be nil if the beacon was disconnected on purpose.

Discussion

Invoked whenever the connection to the beacon has been canceled.

Declared In

BLUConfigurableBeacon.h

– configurableBeacon:didChangeConfiguration:

Invoked whenever a new configuration was written to a beacon.

- (void)configurableBeacon:(BLUConfigurableBeacon *)configurableBeacon didChangeConfiguration:(BLUBeaconConfiguration *)configuration

Parameters

configurableBeacon

The beacon the configuration was written to.

configuration

The configuration that has been written to the beacon. This can differ from the configuration that was originally scheduled to be written if certain scheduled values were invalid.

Discussion

Invoked whenever a new configuration was written to a beacon.

Declared In

BLUConfigurableBeacon.h