RealClientDevice

Class representing real BLE client device. It is a wrapper around native BluetoothDevice.

Constructors

Link copied to clipboard
constructor(device: BluetoothDevice)

Properties

Link copied to clipboard
open override val address: String

MAC address of a device.

Link copied to clipboard
@get:RequiresPermission(value = "android.permission.BLUETOOTH_CONNECT")
open override val bondState: BondState

Bond state. It can change over time.

Link copied to clipboard
Link copied to clipboard
open val hasName: Boolean

Returns true if a device has not empty name.

Link copied to clipboard
open val isBonded: Boolean

Returns true if a device is bonded.

Link copied to clipboard
open val isBonding: Boolean

Returns true if a device is in the middle of bonding process.

Link copied to clipboard
@get:RequiresPermission(value = "android.permission.BLUETOOTH_CONNECT")
open override val name: String?

Name of a device.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)