Dela via


BluetoothHidDevice.Callback.OnConnectionStateChanged Method

Definition

Callback called when connection state with remote host was changed.

[Android.Runtime.Register("onConnectionStateChanged", "(Landroid/bluetooth/BluetoothDevice;I)V", "GetOnConnectionStateChanged_Landroid_bluetooth_BluetoothDevice_IHandler", ApiSince=28)]
public virtual void OnConnectionStateChanged (Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.ProfileState state);
[<Android.Runtime.Register("onConnectionStateChanged", "(Landroid/bluetooth/BluetoothDevice;I)V", "GetOnConnectionStateChanged_Landroid_bluetooth_BluetoothDevice_IHandler", ApiSince=28)>]
abstract member OnConnectionStateChanged : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.ProfileState -> unit
override this.OnConnectionStateChanged : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.ProfileState -> unit

Parameters

device
BluetoothDevice

BluetoothDevice object representing host device which connection state was changed.

state
ProfileState

Connection state as defined in BluetoothProfile.

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothHidDevice.Callback.onConnectionStateChanged(android.bluetooth.BluetoothDevice, 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