Android蓝牙4.0API-类-BluetoothHealth
来源:互联网 发布:淘宝新店一天刷几个人? 编辑:程序博客网 时间:2024/05/16 07:28
BluetoothHealth is a proxy object for controlling the Bluetooth Service via IPC.
How to connect to a health device which is acting in the source role.
getProfileProxy(Context, BluetoothProfile.ServiceListener, int)
to get the BluetoothHealth proxy object.BluetoothHealth
callback and call registerSinkAppConfiguration(String, int, BluetoothHealthCallback)
to register an application configurationconnectChannelToSource(BluetoothDevice, BluetoothHealthAppConfiguration)
. Some devices will connect the channel automatically. The BluetoothHealth
callback will inform the application of channel state change.disconnectChannel(BluetoothDevice, BluetoothHealthAppConfiguration, int)
and unregister the application configuration callingunregisterAppConfiguration(BluetoothHealthAppConfiguration)
BluetoothDevice
: The remote Bluetooth device.BluetoothHealthAppConfiguration
: The application configuration which has been registered using registerSinkAppConfiguration(String, int, BluetoothHealthCallback)
BluetoothDevice
: The remote Bluetooth device.BluetoothHealthAppConfiguration
: The application configuration which has been registered using registerSinkAppConfiguration(String, int, BluetoothHealthCallback)
int
: The channel id associated关联 with the channelint getConnectionState(BluetoothDevice device)
List<BluetoothDevice> getDevicesMatchingConnectionStates(int[] states)
states int
: Array of states. States can be one of STATE_CONNECTED
, STATE_CONNECTING
, STATE_DISCONNECTED
, STATE_DISCONNECTING
,
ParcelFileDescriptor getMainChannelFd(BluetoothDevice device, BluetoothHealthAppConfiguration config)
Get the file descriptor描述符号 of the main channel associated关联的 with the remote device and application configuration.
boolean registerSinkAppConfiguration(String name, int dataType, BluetoothHealthCallback callback)
boolean unregisterAppConfiguration(BluetoothHealthAppConfiguration config)
BluetoothDevice
: The remote Bluetooth device.- Android蓝牙4.0API-类-BluetoothHealth
- Android蓝牙4.0API-类-BluetoothGatt
- Android蓝牙4.0API-类-BluetoothGattCallback
- Android蓝牙4.0API-类-BluetoothGattCharacteristic
- Android蓝牙4.0API部分内容
- Android蓝牙4.0API内容-接口-BluetoothProfile
- Android蓝牙API之BluetoothAdapter类(1)
- Android蓝牙API之BluetoothAdapter类(2)
- Android蓝牙API之BluetoothSocket类(1)
- Android蓝牙API之BluetoothSocket类(2)
- Android蓝牙API之BluetoothAdapter类
- Android蓝牙API之 BluetoothSocket类
- Android蓝牙API之BluetoothAdapter类
- Android蓝牙API之BluetoothAdapter类
- Android 蓝牙API之BluetoothAdapter类使用
- Android蓝牙API之BluetoothAdapter类(1)
- Android蓝牙API之BluetoothAdapter类
- Android蓝牙API之BluetoothAdapter类(1)
- CSS+DIV入门
- Eclipse CDT对C++11的支持
- HDU-4192 Guess the Numbers 表达式求值
- IOS - 屏幕适配 -
- OpenWrt 搭建PPTP Server
- Android蓝牙4.0API-类-BluetoothHealth
- Dubbo与Zookeeper、SpringMVC整合和使用(负载均衡、容错)
- setTimeout/setInterval
- 使用UncaughtExceptionHandler捕获错误日志,客户端不会崩溃。
- 【String】trim() 方法去不掉的空格
- Yahoo!团队:网站性能优化的35条黄金守则
- 并查集【NOI2001 Day1 T3】食物链
- linux命令之ps源码,支持linux和android
- hdu 1238 找最长的公共字串