Condividi tramite


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

Documentazione java per android.bluetooth.BluetoothGattCallback.onMtuChanged(android.bluetooth.BluetoothGatt, int, int).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a