public enum DeviceConnectionStatus extends Enum<DeviceConnectionStatus>
| Enum Constant and Description |
|---|
Active
The device is currently connected and active.
|
Disconnected
The connection is inactive and was terminated normally.
|
Inactive
The device is currently connected but not active.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static DeviceConnectionStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeviceConnectionStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeviceConnectionStatus Active
public static final DeviceConnectionStatus Disconnected
public static final DeviceConnectionStatus Inactive
public static DeviceConnectionStatus[] values()
for (DeviceConnectionStatus c : DeviceConnectionStatus.values()) System.out.println(c);
public static DeviceConnectionStatus valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getValue()
Copyright © 2024. All rights reserved.