Udostępnij za pośrednictwem


BluetoothHealthCallback.OnHealthChannelStateChange Method

Definition

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

config
BluetoothHealthAppConfiguration

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.

fd
ParcelFileDescriptor

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

Java documentation for android.bluetooth.BluetoothHealthCallback.onHealthChannelStateChange(android.bluetooth.BluetoothHealthAppConfiguration, android.bluetooth.BluetoothDevice, int, int, android.os.ParcelFileDescriptor, int).

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.

Applies to