Java android.bluetooth BluetoothDevice fields, constructors, methods, implement or subclass

Example usage for Java android.bluetooth BluetoothDevice fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.bluetooth BluetoothDevice.

The text is from its open source code.

Field

intERROR
Sentinel error value for this class.
StringACTION_FOUND
Broadcast Action: Remote device discovered.
StringACTION_ACL_CONNECTED
Broadcast Action: Indicates a low level (ACL) connection has been established with a remote device.
StringACTION_ACL_DISCONNECT_REQUESTED
Broadcast Action: Indicates that a low level (ACL) disconnection has been requested for a remote device, and it will soon be disconnected.
StringACTION_ACL_DISCONNECTED
Broadcast Action: Indicates a low level (ACL) disconnection from a remote device.
StringACTION_NAME_CHANGED
Broadcast Action: Indicates the friendly name of a remote device has been retrieved for the first time, or changed since the last retrieval.
StringACTION_BOND_STATE_CHANGED
Broadcast Action: Indicates a change in the bond state of a remote device.
StringEXTRA_DEVICE
Used as a Parcelable BluetoothDevice extra field in every intent broadcast by this class.
StringEXTRA_BOND_STATE
Used as an int extra field in #ACTION_BOND_STATE_CHANGED intents.
StringEXTRA_PREVIOUS_BOND_STATE
Used as an int extra field in #ACTION_BOND_STATE_CHANGED intents.
intBOND_NONE
Indicates the remote device is not bonded (paired).
intBOND_BONDING
Indicates bonding (pairing) is in progress with the remote device.
intBOND_BONDED
Indicates the remote device is bonded (paired).
intDEVICE_TYPE_UNKNOWN
Bluetooth device type, Unknown
intDEVICE_TYPE_CLASSIC
Bluetooth device type, Classic - BR/EDR devices
intDEVICE_TYPE_LE
Bluetooth device type, Low Energy - LE-only
intDEVICE_TYPE_DUAL
Bluetooth device type, Dual Mode - BR/EDR/LE
StringACTION_UUID
Broadcast Action: This intent is used to broadcast the UUID wrapped as a android.os.ParcelUuid of the remote device after it has been fetched.
StringACTION_PAIRING_REQUEST
Broadcast Action: This intent is used to broadcast PAIRING REQUEST

Requires android.Manifest.permission#BLUETOOTH_ADMIN to receive.

StringEXTRA_UUID
Used as an extra field in #ACTION_UUID intents, Contains the android.os.ParcelUuid s of the remote device which is a parcelable version of UUID .
intTRANSPORT_LE
Prefer LE transport for GATT connections to remote dual-mode devices

Method

BluetoothGattconnectGatt(Context context, boolean autoConnect, BluetoothGattCallback callback, int transport)
Connect to GATT Server hosted by this device.
BluetoothGattconnectGatt(Context context, boolean autoConnect, BluetoothGattCallback callback)
Connect to GATT Server hosted by this device.
booleancreateBond()
Start the bonding (pairing) process with the remote device.
BluetoothSocketcreateInsecureRfcommSocketToServiceRecord(UUID uuid)
Create an RFCOMM BluetoothSocket socket ready to start an insecure outgoing connection to this remote device using SDP lookup of uuid.
BluetoothSocketcreateRfcommSocketToServiceRecord(UUID uuid)
Create an RFCOMM BluetoothSocket ready to start a secure outgoing connection to this remote device using SDP lookup of uuid.
booleanequals(Object o)
StringgetAddress()
Returns the hardware address of this BluetoothDevice.
BluetoothClassgetBluetoothClass()
Get the Bluetooth class of the remote device.
intgetBondState()
Get the bond state of the remote device.
ClassgetClass()
Returns the runtime class of this Object .
StringgetName()
Get the friendly Bluetooth name of the remote device.
intgetType()
Get the Bluetooth device type of the remote device.
ParcelUuid[]getUuids()
Returns the supported features (UUIDs) of the remote device.