Contentful Personalization & Analytics
    Preparing search index...

    Interface ConsentControllerInternal

    Controller for updating the current consent state.

    Intended for internal wiring between Core classes and the consent signal/store.

    interface ConsentController {
        consent: (accept: ConsentInput) => void;
    }

    Implemented by

    Index

    Properties

    Properties

    consent: (accept: ConsentInput) => void

    Update the runtime consent state.

    Type Declaration

      • (accept: ConsentInput): void
      • Parameters

        • accept: ConsentInput

          true or false for both event consent and the persistence consent value, or an object to update either consent capability independently. Persistence consent controls durable profile-continuity storage.

        Returns void