Language

AdvertisingSetParameters.Builder.SetAnonymous(Boolean) Method

Definition

Set whether advertiser address should be omitted from all packets.

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

Parameters

isAnonymous
Boolean

whether anonymous advertising should be used.

Returns

Attributes

Remarks

Set whether advertiser address should be omitted from all packets. If this mode is used, periodic advertising can't be enabled for this set.

This is used only if legacy mode is not used.

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

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