public final class BluetoothHealth extends Object implements BluetoothProfile
BluetoothProfile.ServiceListener| Modifier and Type | Field and Description |
|---|---|
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 |
A2DP, EXTRA_PREVIOUS_STATE, EXTRA_STATE, HEADSET, HEALTH, STATE_CONNECTED, STATE_CONNECTING, STATE_DISCONNECTED, STATE_DISCONNECTING| Modifier and Type | Method and Description |
|---|---|
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) |
public static final int SOURCE_ROLE
public static final int SINK_ROLE
public static final int CHANNEL_TYPE_RELIABLE
public static final int CHANNEL_TYPE_STREAMING
public static final int STATE_CHANNEL_DISCONNECTED
public static final int STATE_CHANNEL_CONNECTING
public static final int STATE_CHANNEL_CONNECTED
public static final int STATE_CHANNEL_DISCONNECTING
public static final int APP_CONFIG_REGISTRATION_SUCCESS
public static final int APP_CONFIG_REGISTRATION_FAILURE
public static final int APP_CONFIG_UNREGISTRATION_SUCCESS
public static final int APP_CONFIG_UNREGISTRATION_FAILURE
public boolean registerSinkAppConfiguration(String name, int dataType, BluetoothHealthCallback callback)
public boolean unregisterAppConfiguration(BluetoothHealthAppConfiguration config)
public boolean connectChannelToSource(BluetoothDevice device, BluetoothHealthAppConfiguration config)
public boolean disconnectChannel(BluetoothDevice device, BluetoothHealthAppConfiguration config, int channelId)
public ParcelFileDescriptor getMainChannelFd(BluetoothDevice device, BluetoothHealthAppConfiguration config)
public int getConnectionState(BluetoothDevice device)
getConnectionState in interface BluetoothProfilepublic List<BluetoothDevice> getConnectedDevices()
getConnectedDevices in interface BluetoothProfilepublic List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states)
getDevicesMatchingConnectionStates in interface BluetoothProfileCopyright © 2008-2013. All Rights Reserved.