BLUSEncryptedBeaconDelegate Protocol Reference

Conforms to NSObject
Declared in BLUSEncryptedBeacon.h

Overview

The BLUSEncryptedBeaconDelegate protocol defines the methods that a delegate of a BLUSEncryptedBeacon object must adopt.

The encrypted sBeacon delegate provides all important events related to sBeacon advertisement encryption. Delegate events will be invoked on the delegate queue specified in the BLUBeaconManager.

Delegate methods

– sEncryptedBeaconDidDecodeAdvertisement: required method

Invoked whenever the decoding of encrypted sBeacon advertisement data has succeeded. All of the beacon’s advertised values such as its identifier, temperature and battery voltage will only be valid if this method has been invoked at least once.

- (void)sEncryptedBeaconDidDecodeAdvertisement:(BLUSEncryptedBeacon *)sEncryptedBeacon

Parameters

sEncryptedBeacon

The beacon that has successfully decoded the advertisement data.

Discussion

Invoked whenever the decoding of encrypted sBeacon advertisement data has succeeded. All of the beacon’s advertised values such as its identifier, temperature and battery voltage will only be valid if this method has been invoked at least once.

Declared In

BLUSEncryptedBeacon.h

– sEncryptedBeacon:didFailToDecodeAdvertisementWithError: required method

Invoked whenever the decoding of encrypted sBeacon advertisement data has failed. Decoding can only be successful if all keys and a rotation identifier have been specified and are valid.

- (void)sEncryptedBeacon:(BLUSEncryptedBeacon *)sEncryptedBeacon didFailToDecodeAdvertisementWithError:(NSError *)error

Parameters

sEncryptedBeacon

The beacon that has failed to decode the advertisement data.

error

The cause of the decoding failure.

Discussion

Invoked whenever the decoding of encrypted sBeacon advertisement data has failed. Decoding can only be successful if all keys and a rotation identifier have been specified and are valid.

Declared In

BLUSEncryptedBeacon.h

– sEncryptedBeacon:didChangeFromPeripheralIdentifier:toPeripheralIdentifier:

Invoked whenever the Bluetooth address of the beacon did rotate and a new peripheral has been assigned to this beacon internally.

- (void)sEncryptedBeacon:(BLUSEncryptedBeacon *)sEncryptedBeacon didChangeFromPeripheralIdentifier:(NSUUID *)oldPeripheralIdentifier toPeripheralIdentifier:(NSUUID *)peripheralIdentifier

Parameters

sEncryptedBeacon

The beacon that has rotated its Bluetooth address.

oldPeripheralIdentifier

The previous peripheral identifier of the beacon.

peripheralIdentifier

The new peripheral identifier of the beacon.

Discussion

Invoked whenever the Bluetooth address of the beacon did rotate and a new peripheral has been assigned to this beacon internally.

Declared In

BLUSEncryptedBeacon.h