Interface AccessoryWithVolumeControlType
-
public interface AccessoryWithVolumeControlTypeAccessory with volume control typeVolumeControlTypeCharacteristic
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<VolumeControlTypeEnum>getVolumeControlType()Retrieves the current volume control type.voidsubscribeVolumeControlType(HomekitCharacteristicChangeCallback callback)Subscribes to changes in the volume.voidunsubscribeVolumeControlType()Unsubscribes from changes in the volume.
-
-
-
Method Detail
-
getVolumeControlType
CompletableFuture<VolumeControlTypeEnum> getVolumeControlType()
Retrieves the current volume control type. seeVolumeControlTypeEnumfor possible values- Returns:
- a future that will contain the type.
-
subscribeVolumeControlType
void subscribeVolumeControlType(HomekitCharacteristicChangeCallback callback)
Subscribes to changes in the volume.- Parameters:
callback- the function to call when the state changes.
-
unsubscribeVolumeControlType
void unsubscribeVolumeControlType()
Unsubscribes from changes in the volume.
-
-