BluetoothHidDevice.Callback.OnConnectionStateChanged メソッド

定義

リモート ホストとの接続状態が変更されたときに呼び出されるコールバック。

[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

パラメーター

device
BluetoothDevice

BluetoothDevice 接続状態が変更されたホスト デバイスを表すオブジェクト。

state
ProfileState

BluetoothProfileで定義されている接続状態。

属性

注釈

リモート ホストとの接続状態が変更されたときに呼び出されるコールバック。 アプリケーションは、 BluetoothProfile#STATE_CONNECTEDstateで呼び出されたときに仮想ケーブルが確立されるよりも想定できます。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象