Class ActiveCharacteristic
- java.lang.Object
-
- io.github.hapjava.characteristics.impl.base.BaseCharacteristic<Integer>
-
- io.github.hapjava.characteristics.impl.base.EnumCharacteristic<ActiveEnum>
-
- io.github.hapjava.characteristics.impl.common.ActiveCharacteristic
-
- All Implemented Interfaces:
Characteristic,EventableCharacteristic
public class ActiveCharacteristic extends EnumCharacteristic<ActiveEnum>
Active characteristic indicates whether the service is currently active. SeeActiveEnumfor possible values.
-
-
Field Summary
-
Fields inherited from class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
setter
-
-
Constructor Summary
Constructors Constructor Description ActiveCharacteristic(Supplier<CompletableFuture<ActiveEnum>> getter, ExceptionalConsumer<ActiveEnum> setter, Consumer<HomekitCharacteristicChangeCallback> subscriber, Runnable unsubscriber)
-
Method Summary
-
Methods inherited from class io.github.hapjava.characteristics.impl.base.EnumCharacteristic
convert, getDefault, getValue, makeBuilder, setValue
-
Methods inherited from class io.github.hapjava.characteristics.impl.base.BaseCharacteristic
setJsonValue, setValue, subscribe, supplyValue, toJson, unsubscribe
-
-
-
-
Constructor Detail
-
ActiveCharacteristic
public ActiveCharacteristic(Supplier<CompletableFuture<ActiveEnum>> getter, ExceptionalConsumer<ActiveEnum> setter, Consumer<HomekitCharacteristicChangeCallback> subscriber, Runnable unsubscriber)
-
-