語言

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)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於