AdvertisingSet.SetAdvertisingParameters(AdvertisingSetParameters) Method

Definition

Update advertising parameters associated with this AdvertisingSet.

[Android.Runtime.Register("setAdvertisingParameters", "(Landroid/bluetooth/le/AdvertisingSetParameters;)V", "", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_ADVERTISE")]
public void SetAdvertisingParameters(Android.Bluetooth.LE.AdvertisingSetParameters? parameters);
[Android.Runtime.Register("setAdvertisingParameters", "(Landroid/bluetooth/le/AdvertisingSetParameters;)V", "", ApiSince=26)]
public void SetAdvertisingParameters(Android.Bluetooth.LE.AdvertisingSetParameters? parameters);
[<Android.Runtime.Register("setAdvertisingParameters", "(Landroid/bluetooth/le/AdvertisingSetParameters;)V", "", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_ADVERTISE")>]
member this.SetAdvertisingParameters : Android.Bluetooth.LE.AdvertisingSetParameters -> unit
[<Android.Runtime.Register("setAdvertisingParameters", "(Landroid/bluetooth/le/AdvertisingSetParameters;)V", "", ApiSince=26)>]
member this.SetAdvertisingParameters : Android.Bluetooth.LE.AdvertisingSetParameters -> unit

Parameters

parameters
AdvertisingSetParameters

advertising set parameters.

Attributes

Remarks

Update advertising parameters associated with this AdvertisingSet. Must be called when advertising is not active. This method returns immediately, the operation status is delivered through callback.onAdvertisingParametersUpdated.

Requires the android.Manifest.permission#BLUETOOTH_PRIVILEGED permission when parameters.getOwnAddressType() is different from AdvertisingSetParameters.ADDRESS_TYPE_DEFAULT or parameters.isDirected() is true.

Java documentation for android.bluetooth.le.AdvertisingSet.setAdvertisingParameters(android.bluetooth.le.AdvertisingSetParameters).

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