Class: Consent
Constructors
constructor
• new Consent(): Consent
Returns
Defined in
Properties
ConsentStatus
• Readonly
ConsentStatus: typeof ConsentStatus
= ConsentStatus
Defined in
DebugGeography
• Readonly
DebugGeography: typeof DebugGeography
= DebugGeography
Defined in
FormStatus
• Readonly
FormStatus: typeof FormStatus
= FormStatus
Defined in
PrivacyOptionsRequirementStatus
• Readonly
PrivacyOptionsRequirementStatus: typeof PrivacyOptionsRequirementStatus
= PrivacyOptionsRequirementStatus
Defined in
Methods
canRequestAds
▸ canRequestAds(): Promise
<boolean
>
Returns
Promise
<boolean
>
Defined in
getConsentStatus
▸ getConsentStatus(): Promise
<ConsentStatus
>
Returns
Promise
<ConsentStatus
>
Defined in
getFormStatus
▸ getFormStatus(): Promise
<FormStatus
>
Returns
Promise
<FormStatus
>
Defined in
loadAndShowIfRequired
▸ loadAndShowIfRequired(): Promise
<unknown
>
Returns
Promise
<unknown
>
Defined in
loadForm
▸ loadForm(): Promise
<ConsentForm
>
Returns
Promise
<ConsentForm
>
Defined in
privacyOptionsRequirementStatus
▸ privacyOptionsRequirementStatus(): Promise
<PrivacyOptionsRequirementStatus
>
Returns
Promise
<PrivacyOptionsRequirementStatus
>
Defined in
requestInfoUpdate
▸ requestInfoUpdate(opts?
): Promise
<unknown
>
Parameters
Name | Type |
---|---|
opts | RequestInfoUpdateOptions |
Returns
Promise
<unknown
>
Defined in
requestTrackingAuthorization
▸ requestTrackingAuthorization(): Promise
<false
| TrackingAuthorizationStatus
>
Returns
Promise
<false
| TrackingAuthorizationStatus
>
Defined in
reset
▸ reset(): Promise
<unknown
>
Returns
Promise
<unknown
>
Defined in
showPrivacyOptionsForm
▸ showPrivacyOptionsForm(): Promise
<unknown
>
Returns
Promise
<unknown
>
Defined in
trackingAuthorizationStatus
▸ trackingAuthorizationStatus(): Promise
<false
| TrackingAuthorizationStatus
>
Returns
Promise
<false
| TrackingAuthorizationStatus
>