All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.hapjava.accessories.optionalcharacteristic.AccessoryWithStatusTampered Maven / Gradle / Ivy

There is a newer version: 2.0.7
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy