public interface RGBLightCallbackListener extends ServiceCallbackListener
RGBLight
updates its valueModifier and Type | Method and Description |
---|---|
void |
didReadInitialColor(RGBLight rgbLight)
Invoked when the first (initial) color of the RGB Light is read
|
void |
didUpdateRGBColorIndex(RGBLight rgbLight,
int oldColorIndex,
int newColorIndex)
Invoked when the RGBLight service receives an updated color index
Will only be invoked when the RGB light is in the discrete mode
|
void |
didUpdateRGBValue(RGBLight rgbLight,
java.lang.Integer oldRGBColor,
java.lang.Integer newRGBColor)
Invoked when the RGBLight service receives an updated value
Will only be invoked when the RGB light is in the absolute mode
|
didUpdateInputFormat, didUpdateValueData
void didReadInitialColor(RGBLight rgbLight)
rgbLight
- The RGB lightvoid didUpdateRGBValue(RGBLight rgbLight, java.lang.Integer oldRGBColor, java.lang.Integer newRGBColor)
rgbLight
- The RGB lightoldRGBColor
- The previous colornewRGBColor
- The new colorvoid didUpdateRGBColorIndex(RGBLight rgbLight, int oldColorIndex, int newColorIndex)
rgbLight
- The RGB lightoldColorIndex
- The previous color indexnewColorIndex
- The new color index