public enum BleCharacteristicPermission extends java.lang.Enum<BleCharacteristicPermission>
BluetoothGattCharacteristic
.Enum Constant and Description |
---|
READ
Strict typing for
BluetoothGattCharacteristic.PERMISSION_READ . |
READ_ENCRYPTED
Strict typing for
BluetoothGattCharacteristic.PERMISSION_READ_ENCRYPTED . |
READ_ENCRYPTED_MITM
Strict typing for
BluetoothGattCharacteristic.PERMISSION_READ_ENCRYPTED_MITM . |
WRITE
Strict typing for
BluetoothGattCharacteristic.PERMISSION_WRITE . |
WRITE_ENCRYPTED
Strict typing for
BluetoothGattCharacteristic.PERMISSION_WRITE_ENCRYPTED . |
WRITE_ENCRYPTED_MITM
Strict typing for
BluetoothGattCharacteristic.PERMISSION_WRITE_ENCRYPTED_MITM . |
WRITE_SIGNED
Strict typing for
BluetoothGattCharacteristic.PERMISSION_WRITE_SIGNED . |
WRITE_SIGNED_MITM
Strict typing for
BluetoothGattCharacteristic.PERMISSION_WRITE_SIGNED_MITM . |
Modifier and Type | Method and Description |
---|---|
int |
bit() |
int |
or(BitwiseEnum state) |
boolean |
overlaps(int mask) |
static BleCharacteristicPermission |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BleCharacteristicPermission[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BleCharacteristicPermission READ
BluetoothGattCharacteristic.PERMISSION_READ
.public static final BleCharacteristicPermission READ_ENCRYPTED
BluetoothGattCharacteristic.PERMISSION_READ_ENCRYPTED
.public static final BleCharacteristicPermission READ_ENCRYPTED_MITM
BluetoothGattCharacteristic.PERMISSION_READ_ENCRYPTED_MITM
.public static final BleCharacteristicPermission WRITE
BluetoothGattCharacteristic.PERMISSION_WRITE
.public static final BleCharacteristicPermission WRITE_ENCRYPTED
BluetoothGattCharacteristic.PERMISSION_WRITE_ENCRYPTED
.public static final BleCharacteristicPermission WRITE_ENCRYPTED_MITM
BluetoothGattCharacteristic.PERMISSION_WRITE_ENCRYPTED_MITM
.public static final BleCharacteristicPermission WRITE_SIGNED
BluetoothGattCharacteristic.PERMISSION_WRITE_SIGNED
.public static final BleCharacteristicPermission WRITE_SIGNED_MITM
BluetoothGattCharacteristic.PERMISSION_WRITE_SIGNED_MITM
.public static BleCharacteristicPermission[] values()
for (BleCharacteristicPermission c : BleCharacteristicPermission.values()) System.out.println(c);
public static BleCharacteristicPermission 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)