Class BrightnessCharacteristic
- java.lang.Object
-
- io.github.hapjava.characteristics.impl.base.BaseCharacteristic<Integer>
-
- io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
-
- io.github.hapjava.characteristics.impl.lightbulb.BrightnessCharacteristic
-
- All Implemented Interfaces:
Characteristic,EventableCharacteristic
public class BrightnessCharacteristic extends IntegerCharacteristic implements EventableCharacteristic
This characteristic describes a perceived level of brightness, The value is a percentage (%) of the maximum level of supported brightness.
-
-
Constructor Summary
Constructors Constructor Description BrightnessCharacteristic(Supplier<CompletableFuture<Integer>> getter, ExceptionalConsumer<Integer> setter, Consumer<HomekitCharacteristicChangeCallback> subscriber, Runnable unsubscriber)
-
Method Summary
-
Methods inherited from class io.github.hapjava.characteristics.impl.base.IntegerCharacteristic
convert, getDefault, getValue, makeBuilder, setValue
-
Methods inherited from class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
setJsonValue, setValue, subscribe, supplyValue, toJson, unsubscribe
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.hapjava.characteristics.Characteristic
setValue, supplyValue, toJson
-
Methods inherited from interface io.github.hapjava.characteristics.EventableCharacteristic
subscribe, unsubscribe
-
-
-
-
Constructor Detail
-
BrightnessCharacteristic
public BrightnessCharacteristic(Supplier<CompletableFuture<Integer>> getter, ExceptionalConsumer<Integer> setter, Consumer<HomekitCharacteristicChangeCallback> subscriber, Runnable unsubscriber)
-
-