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