Added in API level 36.1
EncryptionStatus
class EncryptionStatus
| kotlin.Any | |
| ↳ | android.bluetooth.EncryptionStatus |
Represents the encryption status of a Bluetooth device.
This class is used to hold the encryption status details like key size and algorithm of a Bluetooth device.
Summary
| Public constructors | |
|---|---|
EncryptionStatus(keySize: Int, algorithm: Int) |
|
| Public methods | |
|---|---|
| Int | |
| Int | |
| String |
toString() |
Public constructors
EncryptionStatus
Added in API level 36.1
EncryptionStatus(
keySize: Int,
algorithm: Int)
| Parameters | |
|---|---|
keySize |
Int: Value is between 1 and 16 inclusive |
algorithm |
Int: Value is android.bluetooth.BluetoothDevice#ENCRYPTION_ALGORITHM_NONE, android.bluetooth.BluetoothDevice#ENCRYPTION_ALGORITHM_E0, android.bluetooth.BluetoothDevice#ENCRYPTION_ALGORITHM_AES, or android.bluetooth.BluetoothDevice#ENCRYPTION_ALGORITHM_UNKNOWN |
Public methods
getAlgorithm
Added in API level 36.1
fun getAlgorithm(): Int
| Return | |
|---|---|
Int |
the encryption algorithm used for the encrypting the link. Value is android.bluetooth.BluetoothDevice#ENCRYPTION_ALGORITHM_NONE, android.bluetooth.BluetoothDevice#ENCRYPTION_ALGORITHM_E0, android.bluetooth.BluetoothDevice#ENCRYPTION_ALGORITHM_AES, or android.bluetooth.BluetoothDevice#ENCRYPTION_ALGORITHM_UNKNOWN |
getKeySize
Added in API level 36.1
fun getKeySize(): Int
| Return | |
|---|---|
Int |
the size of the encryption key, in number of bytes. i.e. value of 16 means 16-octets, or 128 bit key size. Value is between 1 and 16 inclusive |
toString
Added in API level 36.1
fun toString(): String
| Return | |
|---|---|
String |
a string representation of the object. |