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