Variable mediatailorConst

mediatailor: {
    AdTrackingEvent: typeof AdTrackingEvent;
    LogLevel: typeof LogLevel;
    PlaybackEvent: typeof PlaybackEvent;
    SessionUiEvent: typeof SessionUiEvent;
    clientInfo: string;
    createSession: ((config, callback?) => Promise<Session> | void);
    getSdkVersion: (() => string);
    initPal: ((nonceLoader?, consentSettings?) => boolean);
    setLogLevel: ((logLevel) => void);
} = ...

Type declaration

  • AdTrackingEvent: typeof AdTrackingEvent
  • LogLevel: typeof LogLevel
  • PlaybackEvent: typeof PlaybackEvent
  • SessionUiEvent: typeof SessionUiEvent
  • clientInfo: string
  • createSession: ((config, callback?) => Promise<Session> | void)
      • (config, callback?): Promise<Session> | void
      • Create a new MediaTailor session.

        Parameters

        Returns Promise<Session> | void

        If the callback parameter is not specified, return a Promise object which can be resolved to a Session object (on successful completion of session initialization) or rejected with a SessionError object.

  • getSdkVersion: (() => string)
      • (): string
      • Returns string

  • initPal: ((nonceLoader?, consentSettings?) => boolean)
      • (nonceLoader?, consentSettings?): boolean
      • Initialize Google PAL SDK integration.

        Parameters

        • Optional nonceLoader: any

          The NonceLoader object created by Google PAL SDK, which should be specified only if such an object is already created elsewhere.

        • Optional consentSettings: PalConsentSettings

          The object with consent settings needed for creating NonceLoader. This parameter will be ignored if the nonceLoader parameter is specified.

        Returns boolean

        Return true on success or false on failure.

  • setLogLevel: ((logLevel) => void)
      • (logLevel): void
      • Set the level to control the verbosity of debug console logs.

        Parameters

        • logLevel: LogLevel

          The new log level setting.

        Returns void

Generated using TypeDoc