Conforms to LEServiceDelegate
Declared in LERGBLight.h

Overview

Implement this protocol to be notified when the LERGBLight updates its value

Instance Methods

rgbLight:didUpdateColorFrom:to:

Invoked when the LERGBLight service receives an updated value Will only be invoked when the RGB light is is mode LERGBModeAbsolute

- (void)rgbLight:(LERGBLight *)rgbLight didUpdateColorFrom:(CIColor *)oldColor to:(CIColor *)newColor

Parameters

rgbLight

The RGB light

oldColor

The previous color

newColor

The new color

Discussion

Invoked when the LERGBLight service receives an updated value Will only be invoked when the RGB light is is mode LERGBModeAbsolute

Declared In

LERGBLight.h

rgbLight:didUpdateColorIndexFrom:to:

Invoked when the LERGBLight service receives an updated color index Will only be invoked when the RGB light is is mode LERGBModeDiscrete

- (void)rgbLight:(LERGBLight *)rgbLight didUpdateColorIndexFrom:(NSUInteger)oldColorIndex to:(NSUInteger)newColorIndex

Parameters

rgbLight

The RGB light

oldColorIndex

The previous color index

newColorIndex

The new color index

Discussion

Invoked when the LERGBLight service receives an updated color index Will only be invoked when the RGB light is is mode LERGBModeDiscrete

Declared In

LERGBLight.h