BluetoothGattCallback.OnConnectionStateChange Methode

Definition

Rückruf, der angibt, wann der GATT-Client eine Verbindung mit/von einem Remote-GATT-Server hergestellt/getrennt hat.

[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

Parameter

gatt
BluetoothGatt

GATT-Client

status
GattStatus

Status des Verbindungs- oder Verbindungsvorgangs. BluetoothGatt#GATT_SUCCESS wenn der Vorgang erfolgreich ist.

newState
ProfileState

Gibt den neuen Verbindungsstatus zurück. Kann eine von BluetoothProfile#STATE_DISCONNECTED oder BluetoothProfile#STATE_CONNECTED

Attribute

Hinweise

Rückruf, der angibt, wann der GATT-Client eine Verbindung mit/von einem Remote-GATT-Server hergestellt/getrennt hat.

Java Dokumentation für android.bluetooth.BluetoothGattCallback.onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int).

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: