Example usage for Java android.bluetooth BluetoothAdapter fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ERROR Sentinel error value for this class. |
String | ACTION_STATE_CHANGED Broadcast Action: The state of the local Bluetooth adapter has been changed. |
String | EXTRA_STATE Used as an int extra field in #ACTION_STATE_CHANGED intents to request the current power state. |
String | EXTRA_PREVIOUS_STATE Used as an int extra field in #ACTION_STATE_CHANGED intents to request the previous power state. |
int | STATE_OFF Indicates the local Bluetooth adapter is off. |
int | STATE_TURNING_ON Indicates the local Bluetooth adapter is turning on. |
int | STATE_ON Indicates the local Bluetooth adapter is on, and ready for use. |
int | STATE_TURNING_OFF Indicates the local Bluetooth adapter is turning off. |
String | ACTION_REQUEST_DISCOVERABLE Activity Action: Show a system activity that requests discoverable mode. |
String | EXTRA_DISCOVERABLE_DURATION Used as an optional int extra field in #ACTION_REQUEST_DISCOVERABLE intents to request a specific duration for discoverability in seconds. |
String | ACTION_REQUEST_ENABLE Activity Action: Show a system activity that allows the user to turn on Bluetooth. |
String | ACTION_SCAN_MODE_CHANGED Broadcast Action: Indicates the Bluetooth scan mode of the local Adapter has changed. |
String | EXTRA_SCAN_MODE Used as an int extra field in #ACTION_SCAN_MODE_CHANGED intents to request the current scan mode. |
int | SCAN_MODE_NONE Indicates that both inquiry scan and page scan are disabled on the local Bluetooth adapter. |
int | SCAN_MODE_CONNECTABLE Indicates that inquiry scan is disabled, but page scan is enabled on the local Bluetooth adapter. |
int | SCAN_MODE_CONNECTABLE_DISCOVERABLE Indicates that both inquiry scan and page scan are enabled on the local Bluetooth adapter. |
String | ACTION_DISCOVERY_STARTED Broadcast Action: The local Bluetooth adapter has started the remote device discovery process. |
String | ACTION_DISCOVERY_FINISHED Broadcast Action: The local Bluetooth adapter has finished the device discovery process. |
String | ACTION_CONNECTION_STATE_CHANGED Intent used to broadcast the change in connection state of the local Bluetooth adapter to a profile of the remote device. |
String | EXTRA_CONNECTION_STATE Extra used by #ACTION_CONNECTION_STATE_CHANGED This extra represents the current connection state. |
int | STATE_DISCONNECTED The profile is in disconnected state |
int | STATE_CONNECTING The profile is in connecting state |
int | STATE_CONNECTED The profile is in connected state |
int | STATE_DISCONNECTING The profile is in disconnecting state |
boolean | cancelDiscovery() Cancel the current device discovery process. |
boolean | checkBluetoothAddress(String address) Validate a String Bluetooth address, such as "00:43:A8:23:10:F0" Alphabetic characters must be uppercase to be valid. |
boolean | disable() Turn off the local Bluetooth adapter—do not use without explicit user action to turn off Bluetooth. |
boolean | enable() Turn on the local Bluetooth adapter—do not use without explicit user action to turn on Bluetooth. |
String | getAddress() Returns the hardware address of the local Bluetooth adapter. |
BluetoothLeAdvertiser | getBluetoothLeAdvertiser() Returns a BluetoothLeAdvertiser object for Bluetooth LE Advertising operations. |
BluetoothLeScanner | getBluetoothLeScanner() Returns a BluetoothLeScanner object for Bluetooth LE scan operations. |
Set | getBondedDevices() Return the set of BluetoothDevice objects that are bonded (paired) to the local adapter. |
Class> | getClass() Returns the runtime class of this Object . |
BluetoothAdapter | getDefaultAdapter() Get a handle to the default local Bluetooth adapter. |
String | getName() Get the friendly Bluetooth name of the local Bluetooth adapter. |
BluetoothDevice | getRemoteDevice(String address) Get a BluetoothDevice object for the given Bluetooth hardware address. |
BluetoothDevice | getRemoteDevice(byte[] address) Get a BluetoothDevice object for the given Bluetooth hardware address. |
int | getScanMode() Get the current Bluetooth scan mode of the local Bluetooth adapter. |
int | getState() Get the current state of the local Bluetooth adapter. |
boolean | isDiscovering() Return true if the local Bluetooth adapter is currently in the device discovery process. |
boolean | isEnabled() Return true if Bluetooth is currently enabled and ready for use. |
boolean | isMultipleAdvertisementSupported() Return true if the multi advertisement is supported by the chipset |
boolean | setName(String name) Set the friendly Bluetooth name of the local Bluetooth adapter. |
boolean | startDiscovery() Start the remote device discovery process. |
boolean | startLeScan(LeScanCallback callback) Starts a scan for Bluetooth LE devices. |
boolean | startLeScan(final UUID[] serviceUuids, final LeScanCallback callback) Starts a scan for Bluetooth LE devices, looking for devices that advertise given services. |
void | stopLeScan(LeScanCallback callback) Stops an ongoing Bluetooth LE device scan. |