Language

AdvertisingSetParameters.Builder.SetLegacyMode(Boolean) Method

Definition

When set to true, advertising set will advertise 4.x Spec compliant advertisements.

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

Parameters

isLegacy
Boolean

whether legacy advertising mode should be used.

Returns

Attributes

Remarks

When set to true, advertising set will advertise 4.x Spec compliant advertisements.

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

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