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.androiddebugbridge.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * The {@link AndroidDebugBridgeConfiguration} class contains fields mapping thing configuration parameters.
21 * @author Miguel Álvarez - Initial contribution
24 public class AndroidDebugBridgeConfiguration {
26 * The IP address to use for connecting to the Android device.
28 public String ip = "";
30 * Sample configuration parameter. Replace with your own.
34 * Time for scheduled state check.
36 public int refreshTime = 30;
38 * Command timeout seconds.
40 public int timeout = 5;
42 * Record input duration in seconds.
44 public int recordDuration = 5;
46 * Assumed max volume for devices with android versions that do not expose this value (>=android 11).
48 public int deviceMaxVolume = 25;
50 * Settings key for android versions where volume is gather using settings command (>=android 11).
52 public String volumeSettingKey = "volume_music_hdmi";
54 * Configure media state detection behavior by package
56 public @Nullable String mediaStateJSONConfig;