AdServicesState


open class AdServicesState
kotlin.Any
   ↳ android.adservices.AdServicesState

This class specifies the state of the APIs exposed by AdServicesApi apk.

Summary

Public methods
open static Boolean

Returns current state of the AdServicesApi.

Public methods

isAdServicesStateEnabled

open static fun isAdServicesStateEnabled(): Boolean

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.