语言

BluetoothGattServerCallback.OnMtuChanged(BluetoothDevice, Int32) 方法

定义

指示给定设备连接的 MTU 已更改的回调。

[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

参数

device
BluetoothDevice

请求 MTU 更改的远程设备

mtu
Int32

新的 MTU 大小

特性

注解

指示给定设备连接的 MTU 已更改的回调。

如果远程客户端请求更改给定连接的 MTU,将调用此回调。

Java文档android.bluetooth.BluetoothGattServerCallback.onMtuChanged(android.bluetooth.BluetoothDevice, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于