Interface AccessoryWithInputDeviceType
-
public interface AccessoryWithInputDeviceTypeAccessory with input devices, e.g. television.InputDeviceTypeCharacteristic
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<InputDeviceTypeEnum>getInputDeviceType()Retrieves the input device type.voidsubscribeInputDeviceType(HomekitCharacteristicChangeCallback callback)Subscribes to changes in input device type.voidunsubscribeInputDeviceType()Unsubscribes from changes
-
-
-
Method Detail
-
getInputDeviceType
CompletableFuture<InputDeviceTypeEnum> getInputDeviceType()
Retrieves the input device type. SeeInputDeviceTypeEnumfor supported values.- Returns:
- a future with the value
-
subscribeInputDeviceType
void subscribeInputDeviceType(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in input device type.- Parameters:
callback- the function when the input device type changes
-
unsubscribeInputDeviceType
void unsubscribeInputDeviceType()
Unsubscribes from changes
-
-