BluetoothDeviceInformation

data class BluetoothDeviceInformation(    val name: String?,     val majorDeviceClass: BluetoothDeviceInformation.BluetoothDeviceMajorClass,     val majorServiceClasses: Set<BluetoothDeviceInformation.BluetoothDeviceMajorServiceClass>,     val status: BluetoothConnectivityStatus) : Parcelable

Represents a BluetoothDeviceInformation which holds information about a specific remote Bluetooth device.

Parameters

name

The name of the remote Bluetooth device, null indicates that the name is unknown.

majorDeviceClass

Describes general characteristics and capabilities of the remote Bluetooth device. For example, it will specify the device type such as a phone, computer, or headset.

majorServiceClasses

Describes general services of the remote Bluetooth device.

status

The connectivity status of the remote Bluetooth device.

Constructors

Link copied to clipboard
fun BluetoothDeviceInformation(    name: String?,     majorDeviceClass: BluetoothDeviceInformation.BluetoothDeviceMajorClass,     majorServiceClasses: Set<BluetoothDeviceInformation.BluetoothDeviceMajorServiceClass>,     status: BluetoothConnectivityStatus)

Types

Link copied to clipboard

Represents the major class of a Bluetooth device. The major class describes general characteristics and capabilities of a device.

Link copied to clipboard

Represents the major service class of a Bluetooth device. The major service class describes the general services which are supported by a device.

Properties

Link copied to clipboard
Link copied to clipboard
val name: String?
Link copied to clipboard
val status: BluetoothConnectivityStatus

Functions

Link copied to clipboard
open override fun toString(): String

name is masked when the BluetoothDeviceInformation is printed.

Inherited functions

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