public enum BleConnectionPriority extends java.lang.Enum<BleConnectionPriority>
BluetoothGatt
and is passed to BleDevice.setConnectionPriority(BleConnectionPriority, ReadWriteListener)
and returned from BleDevice.getConnectionPriority()
.Enum Constant and Description |
---|
HIGH
Strict typing for
BluetoothGatt.CONNECTION_PRIORITY_HIGH . |
LOW
Strict typing for
BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER . |
MEDIUM
Strict typing for
BluetoothGatt.CONNECTION_PRIORITY_BALANCED . |
Modifier and Type | Method and Description |
---|---|
int |
getNativeMode()
Returns one of the static final int members of
BleConnectionPriority whose name starts with CONNECTION_PRIORITY_. |
static BleConnectionPriority |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleConnectionPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleConnectionPriority LOW
BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER
.public static final BleConnectionPriority MEDIUM
BluetoothGatt.CONNECTION_PRIORITY_BALANCED
.public static final BleConnectionPriority HIGH
BluetoothGatt.CONNECTION_PRIORITY_HIGH
.public static BleConnectionPriority[] values()
for (BleConnectionPriority c : BleConnectionPriority.values()) System.out.println(c);
public static BleConnectionPriority 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 nullpublic int getNativeMode()
BleConnectionPriority
whose name starts with CONNECTION_PRIORITY_.