BluetoothHidDevice.Callback.OnConnectionStateChanged メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
リモート ホストとの接続状態が変更されたときに呼び出されるコールバック。
[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で呼び出されたときに仮想ケーブルが確立されるよりも想定できます。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。