Language

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

The reported state of the AdServices APIs. In the r1 AOSP sources for Android 14, 15, 16, and 17, this value is always true.

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