public final class BluetoothHeadset extends Object implements BluetoothProfile
BluetoothProfile.ServiceListener| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_AUDIO_STATE_CHANGED |
static String |
ACTION_CONNECTION_STATE_CHANGED |
static String |
ACTION_VENDOR_SPECIFIC_HEADSET_EVENT |
static int |
AT_CMD_TYPE_ACTION |
static int |
AT_CMD_TYPE_BASIC |
static int |
AT_CMD_TYPE_READ |
static int |
AT_CMD_TYPE_SET |
static int |
AT_CMD_TYPE_TEST |
static String |
EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS |
static String |
EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD |
static String |
EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE |
static int |
STATE_AUDIO_CONNECTED |
static int |
STATE_AUDIO_CONNECTING |
static int |
STATE_AUDIO_DISCONNECTED |
static String |
VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY |
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 |
isAudioConnected(BluetoothDevice device) |
boolean |
startVoiceRecognition(BluetoothDevice device) |
boolean |
stopVoiceRecognition(BluetoothDevice device) |
public static final String ACTION_CONNECTION_STATE_CHANGED
public static final String ACTION_AUDIO_STATE_CHANGED
public static final String ACTION_VENDOR_SPECIFIC_HEADSET_EVENT
public static final String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD
public static final String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE
public static final int AT_CMD_TYPE_READ
public static final int AT_CMD_TYPE_TEST
public static final int AT_CMD_TYPE_SET
public static final int AT_CMD_TYPE_BASIC
public static final int AT_CMD_TYPE_ACTION
public static final String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS
public static final String VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY
public static final int STATE_AUDIO_DISCONNECTED
public static final int STATE_AUDIO_CONNECTING
public static final int STATE_AUDIO_CONNECTED
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 startVoiceRecognition(BluetoothDevice device)
public boolean stopVoiceRecognition(BluetoothDevice device)
public boolean isAudioConnected(BluetoothDevice device)
Copyright © 2008-2013. All Rights Reserved.