Conforms to NSObject
Declared in SBKBeacon.h

Overview

The delegate of a SBKBeacon object must adopt the SBKBeaconDelegate protocol. The delegate uses this protocol’s methods to monitor the connection state and sensor date changing of a beacon. There are no required methods in this protocol.

Instance Methods

sensoroBeacon:didUpdateAccelerometerCount:

Invoked when a beacon’s accelerometer count changes.

- (void)sensoroBeacon:(SBKBeacon *)beacon didUpdateAccelerometerCount:(NSNumber *)accelerometerCount

Parameters

beacon

The beacon providing this information.

accelerometerCount

New accelerometer count value.

Discussion

Invoked when a beacon’s accelerometer count changes.

Declared In

SBKBeacon.h

sensoroBeacon:didUpdateLightData:

Invoked when a beacon’s light lux changes.

- (void)sensoroBeacon:(SBKBeacon *)beacon didUpdateLightData:(NSNumber *)light

Parameters

beacon

The beacon providing this information.

light

New ambient light level in lux.

Discussion

Invoked when a beacon’s light lux changes.

Declared In

SBKBeacon.h

sensoroBeacon:didUpdateMovingState:

Invoked when a beacon’s moving state changes.

- (void)sensoroBeacon:(SBKBeacon *)beacon didUpdateMovingState:(NSNumber *)isMoving

Parameters

beacon

The beacon providing this information.

isMoving

New moving state.

Discussion

Invoked when a beacon’s moving state changes.

Declared In

SBKBeacon.h

sensoroBeacon:didUpdateRSSI:

Invoked when a beacon’s RSSI changes.

- (void)sensoroBeacon:(SBKBeacon *)beacon didUpdateRSSI:(NSInteger)rssi

Parameters

beacon

The beacon providing this information.

rssi

The new rssi value.

Discussion

Invoked when a beacon’s RSSI changes.

Declared In

SBKBeacon.h

sensoroBeacon:didUpdateSensorSetting:

Invoked when a beacon’s sensor settings changes.

- (void)sensoroBeacon:(SBKBeacon *)beacon didUpdateSensorSetting:(NSDictionary *)settings

Parameters

beacon

The beacon providing this information.

settings

The new sensor setting.

Discussion

Invoked when a beacon’s sensor settings changes.

Declared In

SBKBeacon.h

sensoroBeacon:didUpdateTemperatureData:

Invoked when a beacon’s temperature data changes.

- (void)sensoroBeacon:(SBKBeacon *)beacon didUpdateTemperatureData:(NSNumber *)temperature

Parameters

beacon

The beacon providing this information.

temperature

New temperature value wrapped in NSNumber.

Discussion

Invoked when a beacon’s temperature data changes.

Declared In

SBKBeacon.h

sensoroBeaconDidConnect:

Invoked when a connection is successfully created with a beacon.

- (void)sensoroBeaconDidConnect:(SBKBeacon *)beacon

Parameters

beacon

The beacon that has been connected.

Discussion

Invoked when a connection is successfully created with a beacon.

Declared In

SBKBeacon.h

sensoroBeaconDidDisconnect:error:

Invoked when an existing connection with a beacon is torn down

- (void)sensoroBeaconDidDisconnect:(SBKBeacon *)beacon error:(NSError *)error

Parameters

beacon

The beacon that has been disconnected.

error

If an error occurred, the cause of the failure.

Discussion

Invoked when an existing connection with a beacon is torn down

Declared In

SBKBeacon.h

sensoroBeaconRequirePassword:

Invoked when a connection required a password. if you receive this method, you must call requireWritePermissionWithPassword to get permission.

- (void)sensoroBeaconRequirePassword:(SBKBeacon *)beacon

Parameters

beacon

The beacon that has been connected.

Discussion

Invoked when a connection required a password. if you receive this method, you must call requireWritePermissionWithPassword to get permission.

Declared In

SBKBeacon.h