Language

BluetoothGattConnectionSettings.Builder.SetAutomaticMtuEnabled メソッド

定義

特定の接続に対して MTU (最大伝送単位) をネゴシエートする必要があるかどうかを設定します。

[Android.Runtime.Register("setAutomaticMtuEnabled", "(Z)Landroid/bluetooth/BluetoothGattConnectionSettings$Builder;", "", ApiSince=37)]
public Android.Bluetooth.BluetoothGattConnectionSettings.Builder SetAutomaticMtuEnabled(bool automaticMtuEnabled);
[<Android.Runtime.Register("setAutomaticMtuEnabled", "(Z)Landroid/bluetooth/BluetoothGattConnectionSettings$Builder;", "", ApiSince=37)>]
member this.SetAutomaticMtuEnabled : bool -> Android.Bluetooth.BluetoothGattConnectionSettings.Builder

パラメーター

automaticMtuEnabled
Boolean

この接続で既定の MTU 設定を適用する必要がある場合は true、それ以外の場合は false。

返品

このビルダー。 この値は null にすることはできません。

属性

注釈

特定の接続に対して MTU (最大伝送単位) をネゴシエートする必要があるかどうかを設定します。 これは、接続後に MTU 交換が行われるように、既定で true に設定されます。 自動ネゴシエーションを無効にするには、アプリケーションで false に設定する必要があります。 これを false に設定しても、クライアントが BluetoothGatt.requestMtu を使用して明示的に要求した場合、または他のプロファイルによって内部的にトリガーされた場合、MTU ネゴシエーションは防止されません。

android.bluetooth.BluetoothGattConnectionSettings.Builder.setAutomaticMtuEnabledの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象