Fields Summary |
---|
public static final String | EXTRA_STATEExtra for the connection state intents of the individual profiles.
This extra represents the current connection state of the profile of the
Bluetooth device. |
public static final String | EXTRA_PREVIOUS_STATEExtra for the connection state intents of the individual profiles.
This extra represents the previous connection state of the profile of the
Bluetooth device. |
public static final int | STATE_DISCONNECTEDThe profile is in disconnected state |
public static final int | STATE_CONNECTINGThe profile is in connecting state |
public static final int | STATE_CONNECTEDThe profile is in connected state |
public static final int | STATE_DISCONNECTINGThe profile is in disconnecting state |
public static final int | HEADSETHeadset and Handsfree profile |
public static final int | A2DPA2DP profile. |
public static final int | HEALTHHealth Profile |
public static final int | INPUT_DEVICEInput Device Profile |
public static final int | PANPAN Profile |
public static final int | PBAPPBAP |
public static final int | GATTGATT |
public static final int | GATT_SERVERGATT_SERVER |
public static final int | MAPMAP Profile |
public static final int | A2DP_SINKA2DP Sink Profile |
public static final int | AVRCP_CONTROLLERAVRCP Controller Profile |
public static final int | HEADSET_CLIENTHeadset Client - HFP HF Role |
public static final int | PRIORITY_AUTO_CONNECTDefault priority for devices that we try to auto-connect to and
and allow incoming connections for the profile |
public static final int | PRIORITY_ONDefault priority for devices that allow incoming
and outgoing connections for the profile |
public static final int | PRIORITY_OFFDefault priority for devices that does not allow incoming
connections and outgoing connections for the profile. |
public static final int | PRIORITY_UNDEFINEDDefault priority when not set or when the device is unpaired |
Methods Summary |
---|
public java.util.List | getConnectedDevices()Get connected devices for this specific profile.
Return the set of devices which are in state {@link #STATE_CONNECTED}
Requires {@link android.Manifest.permission#BLUETOOTH} permission.
|
public int | getConnectionState(BluetoothDevice device)Get the current connection state of the profile
Requires {@link android.Manifest.permission#BLUETOOTH} permission.
|
public java.util.List | getDevicesMatchingConnectionStates(int[] states)Get a list of devices that match any of the given connection
states.
If none of the devices match any of the given states,
an empty list will be returned.
Requires {@link android.Manifest.permission#BLUETOOTH} permission.
|