Language

AdvertisingSetParameters.Builder.SetDiscoverable(Boolean) Method

Definition

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

[Android.Runtime.Register("setDiscoverable", "(Z)Landroid/bluetooth/le/AdvertisingSetParameters$Builder;", "", ApiSince=34)]
public Android.Bluetooth.LE.AdvertisingSetParameters.Builder SetDiscoverable(bool discoverable);
[<Android.Runtime.Register("setDiscoverable", "(Z)Landroid/bluetooth/le/AdvertisingSetParameters$Builder;", "", ApiSince=34)>]
member this.SetDiscoverable : bool -> Android.Bluetooth.LE.AdvertisingSetParameters.Builder

Parameters

discoverable
Boolean

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

Returns

Attributes

Remarks

Set whether the advertisement type should be discoverable or non-discoverable. By default, advertisements will be discoverable. Devices connecting to non-discoverable advertisements cannot initiate bonding.

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

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