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

Returns a string representation of the object.

Public constructors

EncryptionStatus

EncryptionStatus(
    keySize: Int,
    algorithm: Int)
Parameters
keySize Int: Value is between 1 and 16 inclusive
algorithm Int: Value is one of the following:

Public methods

getKeySize

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

fun toString(): String

Returns a string representation of the object.

Return
String a string representation of the object.