android.bluetooth
Class BluetoothHeadset

java.lang.Object
  extended by android.bluetooth.BluetoothHeadset
All Implemented Interfaces:
BluetoothProfile

public final class BluetoothHeadset
extends Object
implements BluetoothProfile


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.bluetooth.BluetoothProfile
BluetoothProfile.ServiceListener
 
Field Summary
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
           
 
Fields inherited from interface android.bluetooth.BluetoothProfile
A2DP, EXTRA_PREVIOUS_STATE, EXTRA_STATE, HEADSET, HEALTH, STATE_CONNECTED, STATE_CONNECTING, STATE_DISCONNECTED, STATE_DISCONNECTING
 
Method Summary
 List<BluetoothDevice> getConnectedDevices()
           
 int getConnectionState(BluetoothDevice device)
           
 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states)
           
 boolean isAudioConnected(BluetoothDevice device)
           
 boolean startVoiceRecognition(BluetoothDevice device)
           
 boolean stopVoiceRecognition(BluetoothDevice device)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_CONNECTION_STATE_CHANGED

public static final String ACTION_CONNECTION_STATE_CHANGED
See Also:
Constant Field Values

ACTION_AUDIO_STATE_CHANGED

public static final String ACTION_AUDIO_STATE_CHANGED
See Also:
Constant Field Values

ACTION_VENDOR_SPECIFIC_HEADSET_EVENT

public static final String ACTION_VENDOR_SPECIFIC_HEADSET_EVENT
See Also:
Constant Field Values

EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD

public static final String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD
See Also:
Constant Field Values

EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE

public static final String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE
See Also:
Constant Field Values

AT_CMD_TYPE_READ

public static final int AT_CMD_TYPE_READ
See Also:
Constant Field Values

AT_CMD_TYPE_TEST

public static final int AT_CMD_TYPE_TEST
See Also:
Constant Field Values

AT_CMD_TYPE_SET

public static final int AT_CMD_TYPE_SET
See Also:
Constant Field Values

AT_CMD_TYPE_BASIC

public static final int AT_CMD_TYPE_BASIC
See Also:
Constant Field Values

AT_CMD_TYPE_ACTION

public static final int AT_CMD_TYPE_ACTION
See Also:
Constant Field Values

EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS

public static final String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS
See Also:
Constant Field Values

VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY

public static final String VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY
See Also:
Constant Field Values

STATE_AUDIO_DISCONNECTED

public static final int STATE_AUDIO_DISCONNECTED
See Also:
Constant Field Values

STATE_AUDIO_CONNECTING

public static final int STATE_AUDIO_CONNECTING
See Also:
Constant Field Values

STATE_AUDIO_CONNECTED

public static final int STATE_AUDIO_CONNECTED
See Also:
Constant Field Values
Method Detail

getConnectedDevices

public List<BluetoothDevice> getConnectedDevices()
Specified by:
getConnectedDevices in interface BluetoothProfile

getDevicesMatchingConnectionStates

public List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states)
Specified by:
getDevicesMatchingConnectionStates in interface BluetoothProfile

getConnectionState

public int getConnectionState(BluetoothDevice device)
Specified by:
getConnectionState in interface BluetoothProfile

startVoiceRecognition

public boolean startVoiceRecognition(BluetoothDevice device)

stopVoiceRecognition

public boolean stopVoiceRecognition(BluetoothDevice device)

isAudioConnected

public boolean isAudioConnected(BluetoothDevice device)


Copyright © 2008-2012. All Rights Reserved.