Language

BluetoothGattConnectionSettings.Builder.SetTransport(Int32) Method

Definition

Sets the transport for this Gatt settings.

[Android.Runtime.Register("setTransport", "(I)Landroid/bluetooth/BluetoothGattConnectionSettings$Builder;", "", ApiSince=37)]
public Android.Bluetooth.BluetoothGattConnectionSettings.Builder SetTransport(int transport);
[<Android.Runtime.Register("setTransport", "(I)Landroid/bluetooth/BluetoothGattConnectionSettings$Builder;", "", ApiSince=37)>]
member this.SetTransport : int -> Android.Bluetooth.BluetoothGattConnectionSettings.Builder

Parameters

transport
Int32

Value is one of the following: BluetoothDevice.TRANSPORT_AUTO; BluetoothDevice.TRANSPORT_BREDR; BluetoothDevice.TRANSPORT_LE

Returns

This builder. This value cannot be null.

Attributes

Remarks

Sets the transport for this Gatt settings. preferred transport for GATT connections to remote dual-mode devices.

Android reference for android.bluetooth.BluetoothGattConnectionSettings.Builder.setTransport.

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