Langue

BluetoothGattServerCallback.OnMtuChanged(BluetoothDevice, Int32) Méthode

Définition

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

[Android.Runtime.Register("onMtuChanged", "(Landroid/bluetooth/BluetoothDevice;I)V", "GetOnMtuChanged_Landroid_bluetooth_BluetoothDevice_IHandler", ApiSince=22)]
public virtual void OnMtuChanged(Android.Bluetooth.BluetoothDevice? device, int mtu);
[<Android.Runtime.Register("onMtuChanged", "(Landroid/bluetooth/BluetoothDevice;I)V", "GetOnMtuChanged_Landroid_bluetooth_BluetoothDevice_IHandler", ApiSince=22)>]
abstract member OnMtuChanged : Android.Bluetooth.BluetoothDevice * int -> unit
override this.OnMtuChanged : Android.Bluetooth.BluetoothDevice * int -> unit

Paramètres

device
BluetoothDevice

Appareil distant qui a demandé la modification MTU

mtu
Int32

Nouvelle taille MTU

Attributs

Remarques

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

Ce rappel est appelé si un client distant a demandé de modifier le MTU pour une connexion donnée.

Java documentation pour android.bluetooth.BluetoothGattServerCallback.onMtuChanged(android.bluetooth.BluetoothDevice, 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 à