BluetoothDevice


public final class BluetoothDevice


Represents a remote Bluetooth device. A BluetoothDevice lets you query information about it, such as the name and bond state of the device.

Summary

Public methods

final int
@RequiresPermission(anyOf = ["android.permission.BLUETOOTH", "android.permission.BLUETOOTH_CONNECT"])
getBondState()

the bondState for this BluetoothDevice

final @NonNull UUID

the unique id for this BluetoothDevice

final String
@RequiresPermission(anyOf = ["android.permission.BLUETOOTH", "android.permission.BLUETOOTH_CONNECT"])
getName()

the name for this BluetoothDevice

Public methods

getBondState

Added in 1.0.0-alpha02
@RequiresPermission(anyOf = ["android.permission.BLUETOOTH", "android.permission.BLUETOOTH_CONNECT"])
public final int getBondState()

the bondState for this BluetoothDevice

getId

Added in 1.0.0-alpha02
public final @NonNull UUID getId()

the unique id for this BluetoothDevice

getName

Added in 1.0.0-alpha02
@RequiresPermission(anyOf = ["android.permission.BLUETOOTH", "android.permission.BLUETOOTH_CONNECT"])
public final String getName()

the name for this BluetoothDevice