BluetoothHidDevice.Callback.OnConnectionStateChanged 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 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
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.