BluetoothGattCallback.OnMtuChanged(BluetoothGatt, Int32, GattStatus) Metodo

Definizione

Callback che indica che l'MTU per una determinata connessione del dispositivo è cambiato.

[Android.Runtime.Register("onMtuChanged", "(Landroid/bluetooth/BluetoothGatt;II)V", "GetOnMtuChanged_Landroid_bluetooth_BluetoothGatt_IIHandler")]
public virtual void OnMtuChanged(Android.Bluetooth.BluetoothGatt? gatt, int mtu, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onMtuChanged", "(Landroid/bluetooth/BluetoothGatt;II)V", "GetOnMtuChanged_Landroid_bluetooth_BluetoothGatt_IIHandler")>]
abstract member OnMtuChanged : Android.Bluetooth.BluetoothGatt * int * Android.Bluetooth.GattStatus -> unit
override this.OnMtuChanged : Android.Bluetooth.BluetoothGatt * int * Android.Bluetooth.GattStatus -> unit

Parametri

gatt
BluetoothGatt

Client GATT richiamato BluetoothGatt#requestMtu

mtu
Int32

Nuove dimensioni MTU

status
GattStatus

BluetoothGatt#GATT_SUCCESS se l'MTU è stato modificato correttamente

Attributi

Commenti

Callback che indica che l'MTU per una determinata connessione del dispositivo è cambiato.

Questo callback viene attivato in risposta alla BluetoothGatt#requestMtu funzione o in risposta a un evento di connessione.

per android.bluetooth.BluetoothGattCallback.onMtuChanged(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