Language

AdvertisingSetParameters.Builder.SetScannable(Boolean) Method

Definition

Set whether the advertisement type should be scannable.

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

Parameters

scannable
Boolean

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

Returns

Attributes

Remarks

Set whether the advertisement type should be scannable. 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.setScannable.

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