BluetoothGattCallback.OnConnectionStateChange メソッド

定義

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 サーバーとの間で接続または切断されたタイミングを示すコールバック。

Javaドキュメント。

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

適用対象