Options
All
  • Public
  • Public/Protected
  • All
Menu

Main class for encoding and decoding a TCF Transparency and Consent String

Hierarchy

  • TCString

Index

Methods

Methods

Static decode

  • decode(encodedTCString: string): TCModel
  • Decodes a string into a TCModel

    Parameters

    • encodedTCString: string

      base64url encoded Transparency and Consent String to decode

    Returns TCModel

    • Returns populated TCModel

Static encode

  • encode(tcModel: TCModel, isForSaving?: boolean): string
  • encodes a model into a TCString

    Parameters

    • tcModel: TCModel

      model to convert into encoded string

    • Optional isForSaving: boolean

      = false - Defaults to false. Whether a TC String is meant for storage (true) or meant to be handed to AdTech through the tcfapi (true). This will modify which segments are handed back with the string.

    Returns string

    • base64url encoded Transparency and Consent String

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc