Langue

BluetoothGattCallback.OnMtuChanged(BluetoothGatt, Int32, GattStatus) Méthode

Définition

Rappel indiquant que le MTU d’une connexion d’appareil donnée a changé.

[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

Paramètres

gatt
BluetoothGatt

Client GATT appelé BluetoothGatt#requestMtu

mtu
Int32

Nouvelle taille MTU

status
GattStatus

BluetoothGatt#GATT_SUCCESS si le MTU a été modifié avec succès

Attributs

Remarques

Rappel indiquant que le MTU d’une connexion d’appareil donnée a changé.

Ce rappel est déclenché en réponse à la BluetoothGatt#requestMtu fonction ou en réponse à un événement de connexion.

Java documentation pour android.bluetooth.BluetoothGattCallback.onMtuChanged(android.bluetooth.BluetoothGatt, int, int).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à