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: boolean) => void;
    }

    Implemented by

    Index

    Properties

    Properties

    consent: (accept: boolean) => void

    Update the runtime consent state.

    Type Declaration

      • (accept: boolean): void
      • Parameters

        • accept: boolean

          true when the user has granted consent; false otherwise.

        Returns void