Hierarchy

  • UseGdprResult

Properties

bannerWasShown: boolean

Determine whether the GDPR banner has already been shown to the user

closeGdprBanner: (() => void)

Type declaration

    • (): void
    • Close the GDPR banner and trigger enable/disable event listeners

      Returns void

disableForStorage: ((storage: GdprStorage) => void)

Type declaration

    • (storage: GdprStorage): void
    • Disable all GdprGuards of this GdprManager that have the given GdprStorage

      Parameters

      • storage: GdprStorage

      Returns void

disableGuard: ((guardName: string) => void)

Type declaration

    • (guardName: string): void
    • Disable the GdprGuard that has the given guard name

      Parameters

      • guardName: string

      Returns void

disableManager: (() => void)

Type declaration

    • (): void
    • Disable all GdprGuards of this GdprManager

      Returns void

enableForStorage: ((storage: GdprStorage) => void)

Type declaration

    • (storage: GdprStorage): void
    • Enable all GdprGuards of this GdprManager that have the given GdprStorage

      Parameters

      • storage: GdprStorage

      Returns void

enableGuard: ((guardName: string) => void)

Type declaration

    • (guardName: string): void
    • Enable the GdprGuard that has the given guard name

      Parameters

      • guardName: string

      Returns void

enableManager: (() => void)

Type declaration

    • (): void
    • Enable all GdprGuards of this GdprManager

      Returns void

guardIsEnabled: ((guardName: string, useBannerStatus?: boolean) => boolean)

Type declaration

    • (guardName: string, useBannerStatus?: boolean): boolean
    • Determine whether or not the GdprGuard that has the given guard name is currently enabled

      Parameters

      • guardName: string
      • Optional useBannerStatus: boolean

      Returns boolean

manager: GdprManagerRaw

The current raw state of the GdprManager

resetAndShowBanner: (() => void)

Type declaration

    • (): void
    • Reset the shown state of the GDPR banner

      Returns void

toggleForStorage: ((storage: GdprStorage) => void)

Type declaration

    • (storage: GdprStorage): void
    • Toggle all GdprGuards that have the given GdprStorage to the enabled state of the GdprManager

      Parameters

      • storage: GdprStorage

      Returns void

toggleGuard: ((guardName: string) => void)

Type declaration

    • (guardName: string): void
    • Disable the GdprGuard that has the given guard name

      Parameters

      • guardName: string

      Returns void

toggleManager: (() => void)

Type declaration

    • (): void
    • Toggle all GdprGuards to the enabled state of the GdprManager

      Returns void