次の方法で共有


BluetoothGattServerCallback.OnMtuChanged(BluetoothDevice, Int32) Method

Definition

Callback indicating the MTU for a given device connection has changed.

[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

Parameters

device
BluetoothDevice

The remote device that requested the MTU change

mtu
Int32

The new MTU size

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGattServerCallback.onMtuChanged(android.bluetooth.BluetoothDevice, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to