Language

AdvertiseSettings.Builder.SetDiscoverable(Boolean) Method

Definition

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

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

Android reference for android.bluetooth.le.AdvertiseSettings.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