public enum BluetoothCommand extends java.lang.Enum<BluetoothCommand>
BluetoothDevice
Enum Constant and Description |
---|
COMMAND_CONNECT |
COMMAND_DISCONNECT |
COMMAND_DISCOVERABLE |
COMMAND_HIDE |
COMMAND_NOCOMMAND |
COMMAND_PAIR |
COMMAND_SCAN |
COMMAND_SENDDATA |
COMMAND_STOPSCAN |
COMMAND_SWITCHOFF |
COMMAND_SWITCHON |
COMMAND_UNPAIR |
Modifier and Type | Method and Description |
---|---|
static BluetoothCommand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BluetoothCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BluetoothCommand COMMAND_SWITCHON
public static final BluetoothCommand COMMAND_SWITCHOFF
public static final BluetoothCommand COMMAND_SCAN
public static final BluetoothCommand COMMAND_STOPSCAN
public static final BluetoothCommand COMMAND_CONNECT
public static final BluetoothCommand COMMAND_DISCONNECT
public static final BluetoothCommand COMMAND_PAIR
public static final BluetoothCommand COMMAND_UNPAIR
public static final BluetoothCommand COMMAND_DISCOVERABLE
public static final BluetoothCommand COMMAND_HIDE
public static final BluetoothCommand COMMAND_SENDDATA
public static final BluetoothCommand COMMAND_NOCOMMAND
public static BluetoothCommand[] values()
for (BluetoothCommand c : BluetoothCommand.values()) System.out.println(c);
public static BluetoothCommand valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null