BluetoothGattCallback.OnConnectionStateChange Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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.
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.