Language

AdvertisingSetParameters.Builder.SetConnectable(Boolean) Method

Definition

Set whether the advertisement type should be connectable or non-connectable.

[Android.Runtime.Register("setConnectable", "(Z)Landroid/bluetooth/le/AdvertisingSetParameters$Builder;", "", ApiSince=26)]
public Android.Bluetooth.LE.AdvertisingSetParameters.Builder? SetConnectable(bool connectable);
[<Android.Runtime.Register("setConnectable", "(Z)Landroid/bluetooth/le/AdvertisingSetParameters$Builder;", "", ApiSince=26)>]
member this.SetConnectable : bool -> Android.Bluetooth.LE.AdvertisingSetParameters.Builder

Parameters

connectable
Boolean

Controls whether the advertisement type will be connectable (true) or non-connectable (false).

Returns

Attributes

Remarks

Set whether the advertisement type should be connectable or non-connectable. Legacy advertisements can be both connectable and scannable. Non-legacy advertisements can be only scannable or only connectable.

Android reference for android.bluetooth.le.AdvertisingSetParameters.Builder.setConnectable.

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