BleDevice

sealed interface BleDevice : Parcelable

Class representing BLE device. It can be either mocked or native variant.

Inheritors

Properties

Link copied to clipboard
abstract val address: String

MAC address of a device.

Link copied to clipboard
abstract val bondState: BondState

Bond state. It can change over time.

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
abstract 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)