public enum BleCharacteristicProperty extends java.lang.Enum<BleCharacteristicProperty>
BluetoothGattCharacteristic
.Enum Constant and Description |
---|
BROADCAST
Strict typing for
BluetoothGattCharacteristic.PROPERTY_BROADCAST . |
EXTENDED_PROPS
Strict typing for
BluetoothGattCharacteristic.PROPERTY_EXTENDED_PROPS . |
INDICATE
Strict typing for
BluetoothGattCharacteristic.PROPERTY_INDICATE . |
NOTIFY
Strict typing for
BluetoothGattCharacteristic.PROPERTY_NOTIFY . |
READ
Strict typing for
BluetoothGattCharacteristic.PROPERTY_READ . |
SIGNED_WRITE
Strict typing for
BluetoothGattCharacteristic.PROPERTY_SIGNED_WRITE . |
WRITE
Strict typing for
BluetoothGattCharacteristic.PROPERTY_WRITE . |
WRITE_NO_RESPONSE
Strict typing for
BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE . |
Modifier and Type | Method and Description |
---|---|
int |
bit() |
int |
or(BitwiseEnum state) |
boolean |
overlaps(int mask) |
static BleCharacteristicProperty |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleCharacteristicProperty[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleCharacteristicProperty BROADCAST
BluetoothGattCharacteristic.PROPERTY_BROADCAST
.public static final BleCharacteristicProperty READ
BluetoothGattCharacteristic.PROPERTY_READ
.public static final BleCharacteristicProperty WRITE_NO_RESPONSE
BluetoothGattCharacteristic.PROPERTY_WRITE_NO_RESPONSE
.public static final BleCharacteristicProperty WRITE
BluetoothGattCharacteristic.PROPERTY_WRITE
.public static final BleCharacteristicProperty NOTIFY
BluetoothGattCharacteristic.PROPERTY_NOTIFY
.public static final BleCharacteristicProperty INDICATE
BluetoothGattCharacteristic.PROPERTY_INDICATE
.public static final BleCharacteristicProperty SIGNED_WRITE
BluetoothGattCharacteristic.PROPERTY_SIGNED_WRITE
.public static final BleCharacteristicProperty EXTENDED_PROPS
BluetoothGattCharacteristic.PROPERTY_EXTENDED_PROPS
.public static BleCharacteristicProperty[] values()
for (BleCharacteristicProperty c : BleCharacteristicProperty.values()) System.out.println(c);
public static BleCharacteristicProperty 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 or(BitwiseEnum state)
public int bit()
public boolean overlaps(int mask)