io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hap Show documentation
Show all versions of hap Show documentation
Homekit Accessory Protocol for Java
package io.github.hapjava.accessories.optionalcharacteristic;
import io.github.hapjava.characteristics.HomekitCharacteristicChangeCallback;
import io.github.hapjava.characteristics.impl.common.StatusTamperedEnum;
import java.util.concurrent.CompletableFuture;
/** This characteristic describes an accessory which has been tampered with. */
public interface AccessoryWithStatusTampered {
/**
* Retrieves the status tampered.
*
* @return a future with the value
*/
CompletableFuture getStatusTampered();
/**
* Subscribes to changes in status tampered.
*
* @param callback the function when the status tampered changes
*/
void subscribeStatusTampered(HomekitCharacteristicChangeCallback callback);
/** Unsubscribes from changes */
void unsubscribeStatusTampered();
}