BluetoothGattCallback.OnConnectionStateChange Metodo

Definizione

Callback che indica quando il client GATT è connesso/disconnesso da un server GATT remoto.

[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

Parametri

gatt
BluetoothGatt

Client GATT

status
GattStatus

Stato dell'operazione di connessione o disconnessione. BluetoothGatt#GATT_SUCCESS se l'operazione ha esito positivo.

newState
ProfileState

Restituisce il nuovo stato di connessione. Può essere uno di BluetoothProfile#STATE_DISCONNECTED o BluetoothProfile#STATE_CONNECTED

Attributi

Commenti

Callback che indica quando il client GATT è connesso/disconnesso da un server GATT remoto.

per android.bluetooth.BluetoothGattCallback.onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a