Android.Bluetooth.BluetoothHealthCallback.OnHealthChannelStateChange Method
Callback to inform change in channel state.

Syntax

[Android.Runtime.Register("onHealthChannelStateChange", "(Landroid/bluetooth/BluetoothHealthAppConfiguration;Landroid/bluetooth/BluetoothDevice;IILandroid/os/ParcelFileDescriptor;I)V", "GetOnHealthChannelStateChange_Landroid_bluetooth_BluetoothHealthAppConfiguration_Landroid_bluetooth_BluetoothDevice_IILandroid_os_ParcelFileDescriptor_IHandler")]
public virtual void OnHealthChannelStateChange (BluetoothHealthAppConfiguration config, BluetoothDevice device, [Android.Runtime.GeneratedEnum] HealthState prevState, [Android.Runtime.GeneratedEnum] HealthState newState, Android.OS.ParcelFileDescriptor fd, int channelId)

Parameters

config
The Health app configutation
device
The Bluetooth Device
prevState
The previous state of the channel
newState
The new state of the channel.
fd
The Parcel File Descriptor when the channel state is connected.
channelId
The id associated with the channel. This id will be used in future calls like when disconnecting the channel.

Remarks

Callback to inform change in channel state.

Its the responsibility of the implementor of this callback to close the parcel file descriptor when done. This callback is called on the Binder thread (not the UI thread)

[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