BluetoothGattServerCallback.OnConnectionStateChange メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
リモート デバイスがいつ接続または切断されたかを示すコールバック。
[Android.Runtime.Register("onConnectionStateChange", "(Landroid/bluetooth/BluetoothDevice;II)V", "GetOnConnectionStateChange_Landroid_bluetooth_BluetoothDevice_IIHandler")]
public virtual void OnConnectionStateChange(Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.ProfileState status, Android.Bluetooth.ProfileState newState);
[<Android.Runtime.Register("onConnectionStateChange", "(Landroid/bluetooth/BluetoothDevice;II)V", "GetOnConnectionStateChange_Landroid_bluetooth_BluetoothDevice_IIHandler")>]
abstract member OnConnectionStateChange : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.ProfileState * Android.Bluetooth.ProfileState -> unit
override this.OnConnectionStateChange : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.ProfileState * Android.Bluetooth.ProfileState -> unit
パラメーター
- device
- BluetoothDevice
接続または切断されたリモート デバイス。
- status
- ProfileState
接続または切断操作の状態。
- newState
- ProfileState
新しい接続状態を返します。
BluetoothProfile#STATE_DISCONNECTEDまたはBluetoothProfile#STATE_CONNECTED
- 属性
注釈
リモート デバイスがいつ接続または切断されたかを示すコールバック。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。