BluetoothHealthCallback.OnHealthChannelStateChange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Callback to inform change in channel state.
[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 (Android.Bluetooth.BluetoothHealthAppConfiguration? config, Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.HealthState prevState, Android.Bluetooth.HealthState newState, Android.OS.ParcelFileDescriptor? fd, int channelId);
[<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")>]
abstract member OnHealthChannelStateChange : Android.Bluetooth.BluetoothHealthAppConfiguration * Android.Bluetooth.BluetoothDevice * Android.Bluetooth.HealthState * Android.Bluetooth.HealthState * Android.OS.ParcelFileDescriptor * int -> unit
override this.OnHealthChannelStateChange : Android.Bluetooth.BluetoothHealthAppConfiguration * Android.Bluetooth.BluetoothDevice * Android.Bluetooth.HealthState * Android.Bluetooth.HealthState * Android.OS.ParcelFileDescriptor * int -> unit
Parameters
The Health app configutation
- device
- BluetoothDevice
The Bluetooth Device
- prevState
- HealthState
The previous state of the channel
- newState
- HealthState
The new state of the channel.
The Parcel File Descriptor when the channel state is connected.
- channelId
- Int32
The id associated with the channel. This id will be used in future calls like when disconnecting the channel.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.