BluetoothAdapter

Class of android.bluetooth · BluetoothAdapter.java · Android's reference

public final class BluetoothAdapter

The Bluetooth radio (Off in docs/platforms/android-apps/interfaces.md). The device has none, so getDefaultAdapter answers null.

Fields

public static final int STATE_OFF = 10 source
public static final int STATE_TURNING_ON = 11 source
public static final int STATE_ON = 12 source
public static final int STATE_TURNING_OFF = 13 source
public static final String ACTION_STATE_CHANGED = "android.bluetooth.adapter.action.STATE_CHANGED" source
public static final String EXTRA_STATE = "android.bluetooth.adapter.extra.STATE" source

Methods

public static BluetoothAdapter getDefaultAdapter() source
public boolean isEnabled() source
public int getState() source
public boolean getProfileProxy(Context context, BluetoothProfile.ServiceListener listener, int profile) source
public void closeProfileProxy(int profile, BluetoothProfile proxy) empty body source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.