Share via


AdvertisingSet.SetAdvertisingData(AdvertiseData) Method

Definition

Set/update data being Advertised.

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

Parameters

advertiseData
AdvertiseData

Advertisement data to be broadcasted. Size must not exceed BluetoothAdapter#getLeMaximumAdvertisingDataLength. If the advertisement is connectable, three bytes will be added for flags. If the update takes place when the advertising set is enabled, the data can be maximum 251 bytes long.

Attributes

Remarks

Java documentation for android.bluetooth.le.AdvertisingSet.setAdvertisingData(android.bluetooth.le.AdvertiseData).

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