BleCharacteristicPermission enum

An enumeration representing the permissions associated with a Bluetooth Low Energy (BLE) characteristic.

Each permission corresponds to a specific type of operation that can be performed on the characteristic, determining the allowed interactions with it. These permissions are a representation of Android's BluetoothGattCharacteristic permissions.

Inheritance
Available extensions

Values

read → const BleCharacteristicPermission

Allows the characteristic value to be read.

This permission indicates that the BLE characteristic value can be retrieved by a connected device.

readEncrypted → const BleCharacteristicPermission

Allows the characteristic value to be read with encryption enabled.

This permission ensures that the data exchanged is encrypted for security. It's a level up from the basic read permission.

readEncryptedMitm → const BleCharacteristicPermission

Allows the characteristic value to be read with encryption and protection against Man-in-the-Middle (MITM) attacks.

This is a higher level of security, ensuring not only encryption but also authentication, making it difficult for unauthorized devices to intercept and alter the data being exchanged.

write → const BleCharacteristicPermission

Allows the characteristic value to be written.

This permission grants a connected device the ability to send and update the value of the characteristic.

writeEncrypted → const BleCharacteristicPermission

Allows the characteristic value to be written with encryption enabled.

Like its read counterpart, this permission ensures that data being sent to update the characteristic value is encrypted.

writeEncryptedMitm → const BleCharacteristicPermission

Allows the characteristic value to be written with encryption and protection against MITM attacks.

This provides a secure mechanism for devices to send updates to the characteristic value, ensuring the data is both encrypted and authenticated.

writeSigned → const BleCharacteristicPermission

Allows the characteristic value to be written with a signed writing method.

This means the data being sent carries a signature, verifying its authenticity.

writeSignedMitm → const BleCharacteristicPermission

Allows the characteristic value to be written with a signed method and protection against MITM attacks.

This ensures that not only is the data signed for authenticity, but it is also protected against tampering and interception by unauthorized devices.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int

Available on BleCharacteristicPermission, provided by the BluetoothGattCharacteristicPermissionsExtension extension

Retrieves the bitmask value corresponding to the characteristic permission.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromInt(int value) List<BleCharacteristicPermission>
Convert an integer with bitwise representations to a list of enum values.

Constants

values → const List<BleCharacteristicPermission>
A constant List of the values in this enum, in order of their declaration.