Compartir a través de


AdvertisingSet.SetPeriodicAdvertisingData(AdvertiseData) Method

Definition

Used to set periodic advertising data, must be called after setPeriodicAdvertisingParameters, or after advertising was started with periodic advertising data set.

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

Parameters

periodicData
AdvertiseData

Periodic advertising data. Size must not exceed BluetoothAdapter#getLeMaximumAdvertisingDataLength. If the update takes place when the periodic advertising is enabled for this set, the data can be maximum 251 bytes long.

Attributes

Remarks

Java documentation for android.bluetooth.le.AdvertisingSet.setPeriodicAdvertisingData(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