public final class BluetoothA2dp extends Object implements BluetoothProfile
BluetoothProfile.ServiceListener| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_CONNECTION_STATE_CHANGED |
static String |
ACTION_PLAYING_STATE_CHANGED |
static int |
STATE_NOT_PLAYING |
static int |
STATE_PLAYING |
A2DP, EXTRA_PREVIOUS_STATE, EXTRA_STATE, HEADSET, HEALTH, STATE_CONNECTED, STATE_CONNECTING, STATE_DISCONNECTED, STATE_DISCONNECTING| Modifier and Type | Method and Description |
|---|---|
List<BluetoothDevice> |
getConnectedDevices() |
int |
getConnectionState(BluetoothDevice device) |
List<BluetoothDevice> |
getDevicesMatchingConnectionStates(int[] states) |
boolean |
isA2dpPlaying(BluetoothDevice device) |
public static final String ACTION_CONNECTION_STATE_CHANGED
public static final String ACTION_PLAYING_STATE_CHANGED
public static final int STATE_PLAYING
public static final int STATE_NOT_PLAYING
public List<BluetoothDevice> getConnectedDevices()
getConnectedDevices in interface BluetoothProfilepublic List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states)
getDevicesMatchingConnectionStates in interface BluetoothProfilepublic int getConnectionState(BluetoothDevice device)
getConnectionState in interface BluetoothProfilepublic boolean isA2dpPlaying(BluetoothDevice device)
Copyright © 2008-2013. All Rights Reserved.