2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.network.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Implement this callback to be notified of a presence detection result.
20 * @author David Graeff - Initial contribution
23 public interface PresenceDetectionListener {
26 * This method is called by the {@see PresenceDetectionService}
27 * if a device is deemed to be reachable.
29 * @param value The partial result of the presence detection process.
30 * A partial result always means that the device is reachable, but not
31 * all methods have returned a value yet.
33 public void partialDetectionResult(PresenceDetectionValue value);
36 * This method is called by the {@see PresenceDetectionService}
37 * if a new device state is known. The device might be reachable by different means
40 * @param value The final result of the presence detection process.
42 public void finalDetectionResult(PresenceDetectionValue value);