Freigeben über


BluetoothGatt.RequestMtu(Int32) Method

Definition

Request an MTU size used for a given connection.

[Android.Runtime.Register("requestMtu", "(I)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool RequestMtu (int mtu);
[<Android.Runtime.Register("requestMtu", "(I)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.RequestMtu : int -> bool

Parameters

mtu
Int32

Returns

true, if the new MTU value has been requested successfully

Attributes

Remarks

Java documentation for android.bluetooth.BluetoothGatt.requestMtu(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