android.bluetooth
Class BluetoothHealth
java.lang.Object
android.bluetooth.BluetoothHealth
- All Implemented Interfaces:
- BluetoothProfile
public final class BluetoothHealth
- extends Object
- implements BluetoothProfile
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.