android.bluetooth
Class BluetoothHealth

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

public final class BluetoothHealth
extends Object
implements BluetoothProfile


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.bluetooth.BluetoothProfile
BluetoothProfile.ServiceListener
 
Field Summary
static int APP_CONFIG_REGISTRATION_FAILURE
           
static int APP_CONFIG_REGISTRATION_SUCCESS
           
static int APP_CONFIG_UNREGISTRATION_FAILURE
           
static int APP_CONFIG_UNREGISTRATION_SUCCESS
           
static int CHANNEL_TYPE_RELIABLE
           
static int CHANNEL_TYPE_STREAMING
           
static int SINK_ROLE
           
static int SOURCE_ROLE
           
static int STATE_CHANNEL_CONNECTED
           
static int STATE_CHANNEL_CONNECTING
           
static int STATE_CHANNEL_DISCONNECTED
           
static int STATE_CHANNEL_DISCONNECTING
           
 
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
 boolean connectChannelToSource(BluetoothDevice device, BluetoothHealthAppConfiguration config)
           
 boolean disconnectChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelId)
           
 List<BluetoothDevice> getConnectedDevices()
           
 int getConnectionState(BluetoothDevice device)
           
 List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states)
           
 ParcelFileDescriptor getMainChannelFd(BluetoothDevice device, BluetoothHealthAppConfiguration config)
           
 boolean registerSinkAppConfiguration(String name, int dataType, BluetoothHealthCallback callback)
           
 boolean unregisterAppConfiguration(BluetoothHealthAppConfiguration config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE_ROLE

public static final int SOURCE_ROLE
See Also:
Constant Field Values

SINK_ROLE

public static final int SINK_ROLE
See Also:
Constant Field Values

CHANNEL_TYPE_RELIABLE

public static final int CHANNEL_TYPE_RELIABLE
See Also:
Constant Field Values

CHANNEL_TYPE_STREAMING

public static final int CHANNEL_TYPE_STREAMING
See Also:
Constant Field Values

STATE_CHANNEL_DISCONNECTED

public static final int STATE_CHANNEL_DISCONNECTED
See Also:
Constant Field Values

STATE_CHANNEL_CONNECTING

public static final int STATE_CHANNEL_CONNECTING
See Also:
Constant Field Values

STATE_CHANNEL_CONNECTED

public static final int STATE_CHANNEL_CONNECTED
See Also:
Constant Field Values

STATE_CHANNEL_DISCONNECTING

public static final int STATE_CHANNEL_DISCONNECTING
See Also:
Constant Field Values

APP_CONFIG_REGISTRATION_SUCCESS

public static final int APP_CONFIG_REGISTRATION_SUCCESS
See Also:
Constant Field Values

APP_CONFIG_REGISTRATION_FAILURE

public static final int APP_CONFIG_REGISTRATION_FAILURE
See Also:
Constant Field Values

APP_CONFIG_UNREGISTRATION_SUCCESS

public static final int APP_CONFIG_UNREGISTRATION_SUCCESS
See Also:
Constant Field Values

APP_CONFIG_UNREGISTRATION_FAILURE

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

registerSinkAppConfiguration

public boolean registerSinkAppConfiguration(String name,
                                            int dataType,
                                            BluetoothHealthCallback callback)

unregisterAppConfiguration

public boolean unregisterAppConfiguration(BluetoothHealthAppConfiguration config)

connectChannelToSource

public boolean connectChannelToSource(BluetoothDevice device,
                                      BluetoothHealthAppConfiguration config)

disconnectChannel

public boolean disconnectChannel(BluetoothDevice device,
                                 BluetoothHealthAppConfiguration config,
                                 int channelId)

getMainChannelFd

public ParcelFileDescriptor getMainChannelFd(BluetoothDevice device,
                                             BluetoothHealthAppConfiguration config)

getConnectionState

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

getConnectedDevices

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

getDevicesMatchingConnectionStates

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


Copyright © 2008-2012. All Rights Reserved.