Udostępnij za pośrednictwem


AdvertisingSet.SetPeriodicAdvertisingEnabled(Boolean) Method

Definition

Used to enable/disable periodic advertising.

[Android.Runtime.Register("setPeriodicAdvertisingEnabled", "(Z)V", "", ApiSince=26)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_ADVERTISE")]
public void SetPeriodicAdvertisingEnabled (bool enable);
[<Android.Runtime.Register("setPeriodicAdvertisingEnabled", "(Z)V", "", ApiSince=26)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_ADVERTISE")>]
member this.SetPeriodicAdvertisingEnabled : bool -> unit

Parameters

enable
Boolean

whether the periodic advertising should be enabled (true), or disabled (false).

Attributes

Remarks

Java documentation for android.bluetooth.le.AdvertisingSet.setPeriodicAdvertisingEnabled(boolean).

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