Android.Bluetooth.BluetoothHealth Class
Public API for Bluetooth Health Profile.

See Also: BluetoothHealth Members

Syntax

[Android.Runtime.Register("android/bluetooth/BluetoothHealth", DoNotGenerateAcw=true)]
public sealed class BluetoothHealth : Java.Lang.Object, IBluetoothProfile, IDisposable

Remarks

Public API for Bluetooth Health Profile.

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. Use BluetoothAdapter.GetProfileProxy(Android.Content.Context, Android.Bluetooth.IBluetoothProfileServiceListener, Android.Bluetooth.IBluetoothProfileServiceListener) to get the BluetoothHealth proxy object. Create an Android.Bluetooth.BluetoothHealth callback and call BluetoothHealth.RegisterSinkAppConfiguration(string, System.Int32, System.Int32) to register an application configuration Pair with the remote device. This currently needs to be done manually from Bluetooth Settings Connect to a health device using BluetoothHealth.ConnectChannelToSource(BluetoothDevice, Android.Bluetooth.BluetoothHealthAppConfiguration). Some devices will connect the channel automatically. The Android.Bluetooth.BluetoothHealth callback will inform the application of channel state change. Use the file descriptor provided with a connected channel to read and write data to the health channel. The received data needs to be interpreted using a health manager which implements the IEEE 11073-xxxxx specifications. When done, close the health channel by calling BluetoothHealth.DisconnectChannel(BluetoothDevice, Android.Bluetooth.BluetoothHealthAppConfiguration, Android.Bluetooth.BluetoothHealthAppConfiguration) and unregister the application configuration calling BluetoothHealth.UnregisterAppConfiguration(BluetoothHealthAppConfiguration)

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14