Skip to main content
Version: Next

Class: Consent

Constructors

constructor

new Consent(): Consent

Returns

Consent

Defined in

index.ts:85

Properties

ConsentStatus

Readonly ConsentStatus: typeof ConsentStatus = ConsentStatus

Defined in

index.ts:79


DebugGeography

Readonly DebugGeography: typeof DebugGeography = DebugGeography

Defined in

index.ts:80


FormStatus

Readonly FormStatus: typeof FormStatus = FormStatus

Defined in

index.ts:81


PrivacyOptionsRequirementStatus

Readonly PrivacyOptionsRequirementStatus: typeof PrivacyOptionsRequirementStatus = PrivacyOptionsRequirementStatus

Defined in

index.ts:82

Methods

canRequestAds

canRequestAds(): Promise<boolean>

Returns

Promise<boolean>

Defined in

index.ts:103


getConsentStatus

getConsentStatus(): Promise<ConsentStatus>

Returns

Promise<ConsentStatus>

Defined in

index.ts:144


getFormStatus

getFormStatus(): Promise<FormStatus>

Returns

Promise<FormStatus>

Defined in

index.ts:149


loadAndShowIfRequired

loadAndShowIfRequired(): Promise<unknown>

Returns

Promise<unknown>

Defined in

index.ts:112


loadForm

loadForm(): Promise<ConsentForm>

Returns

Promise<ConsentForm>

Defined in

index.ts:158


privacyOptionsRequirementStatus

privacyOptionsRequirementStatus(): Promise<PrivacyOptionsRequirementStatus>

Returns

Promise<PrivacyOptionsRequirementStatus>

Defined in

index.ts:107


requestInfoUpdate

requestInfoUpdate(opts?): Promise<unknown>

Parameters

NameType
optsRequestInfoUpdateOptions

Returns

Promise<unknown>

Defined in

index.ts:154


requestTrackingAuthorization

requestTrackingAuthorization(): Promise<false | TrackingAuthorizationStatus>

Returns

Promise<false | TrackingAuthorizationStatus>

Defined in

index.ts:132


reset

reset(): Promise<unknown>

Returns

Promise<unknown>

Defined in

index.ts:163


showPrivacyOptionsForm

showPrivacyOptionsForm(): Promise<unknown>

Returns

Promise<unknown>

Defined in

index.ts:116


trackingAuthorizationStatus

trackingAuthorizationStatus(): Promise<false | TrackingAuthorizationStatus>

Returns

Promise<false | TrackingAuthorizationStatus>

Defined in

index.ts:120