public class State
extends Object
Modifier and Type | Class and Description |
---|---|
static class |
State.AlertMode
Alert modes of a light.
|
static class |
State.ColorMode
Color modes of a light.
|
static class |
State.Effect
Effects possible for a light.
|
Modifier and Type | Method and Description |
---|---|
State.AlertMode |
getAlertMode()
Returns the last alert mode set.
|
int |
getBrightness()
Returns the brightness.
|
State.ColorMode |
getColorMode()
Returns the current color mode.
|
int |
getColorTemperature()
Returns the color temperature.
|
State.Effect |
getEffect()
Returns the current active effect.
|
int |
getHue()
Returns the hue.
|
int |
getSaturation()
Returns the saturation.
|
float[] |
getXY()
Returns the coordinates in CIE color space.
|
boolean |
isOn()
Returns the on state.
|
boolean |
isReachable()
Returns reachability.
|
public boolean isOn()
public int getBrightness()
public int getHue()
public int getSaturation()
public float[] getXY()
public int getColorTemperature()
public State.AlertMode getAlertMode()
public State.ColorMode getColorMode()
public State.Effect getEffect()
public boolean isReachable()