Conforms to NSObject
Declared in ABLight.h

Overview

  • ABLightDelegate defines light connection delegate mathods. Connection is
  • asynchronous operation so you need to be prepared that eg.
  • lightDidDisconnected:withError method can be invoked without previous action.

Instance Methods

lightDidConnected:withError:

Delegate method that light did connected with error. if error is not nil which means light didn’t be connected or light was connected

- (void)lightDidConnected:(ABLight *)light withError:(NSError *)error

Parameters

light

reference to ABLight object

error

light connect failed error or nil

Return Value

void

Discussion

Delegate method that light did connected with error. if error is not nil which means light didn’t be connected or light was connected

Declared In

ABLight.h

lightDidDisconnected:withError:

Delegate method that light did connected with error.

- (void)lightDidDisconnected:(ABLight *)light withError:(NSError *)error

Parameters

light

reference to ABLight object

the

reason of light disconnected or nil

Return Value

void

Discussion

Delegate method that light did connected with error.

or light was connected

Declared In

ABLight.h