共用方式為


AdServicesState.IsAdServicesStateEnabled Property

Definition

Returns current state of the AdServicesApi.

public static bool IsAdServicesStateEnabled { [Android.Runtime.Register("isAdServicesStateEnabled", "()Z", "", ApiSince=34)] get; }
[<get: Android.Runtime.Register("isAdServicesStateEnabled", "()Z", "", ApiSince=34)>]
static member IsAdServicesStateEnabled : bool

Property Value

Attributes

Remarks

Returns current state of the AdServicesApi. The state of AdServicesApi may change only upon reboot, so this value can be cached, but not persisted, i.e., the value should be rechecked after a reboot.

Java documentation for android.adservices.AdServicesState.isAdServicesStateEnabled().

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