ESTDeviceNotificationProtocol

@protocol ESTDeviceNotificationProtocol <NSObject>

ESTDeviceNotificationProtocol has to be implemented by all notification classes to be compatible with Estimote device API.

A notification class can be registered with -[ESTBeaconSettingsManager registerNotification:]. Then, its handler block is fired each time the device sents notification data.

Note that the device has to be in connected state in order for notifications to work.

  • ID of register should be used to deliver value of the setting.

    Declaration

    Objective-C

    - (uint16_t)registerID;

    Swift

    func registerID() -> UInt16

    Return Value

    NSInteger value representing register ID

  • Method invoked when notification data is delivered from the device.

    Declaration

    Objective-C

    - (void)fireHandlerWithData:(nonnull NSData *)data;

    Swift

    func fireHandler(with data: Data)

    Parameters

    data

    NSData object representing value delivered

  • Lowest firmware version supporting notification.

    Declaration

    Objective-C

    - (nonnull NSString *)supportedFirmwareVersion;

    Swift

    func supportedFirmwareVersion() -> String

    Return Value

    Version of firmware.