Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • addAuthenticationTextsToLoadingContainer(loaderContainer: HTMLDivElement, platform: any, isGameRegistered: any): HTMLDivElement
  • addAuthenticationUrlToTextsContainer(onClick: () => void, textContainer: HTMLDivElement): void
  • addTouchAndClickEventListeners(element: HTMLElement, action: () => void): void
  • computeAuthenticatedBanner(onOpenAuthenticationWindow: () => void, onDismissBanner: () => void, username: null | string): HTMLDivElement
  • Creates a DOM element representing a banner for the user to know which account they're using and also to allow switching to another account.

    Parameters

    • onOpenAuthenticationWindow: () => void
        • (): void
        • Returns void

    • onDismissBanner: () => void
        • (): void
        • Returns void

    • username: null | string

    Returns HTMLDivElement

  • computeAuthenticationContainer(onCloseAuthenticationContainer: () => void): { loaderContainer: HTMLDivElement; rootContainer: HTMLDivElement }
  • Creates a DOM element that will contain the loader or a message if the game is not registered.

    Parameters

    • onCloseAuthenticationContainer: () => void
        • (): void
        • Returns void

    Returns { loaderContainer: HTMLDivElement; rootContainer: HTMLDivElement }

    • loaderContainer: HTMLDivElement
    • rootContainer: HTMLDivElement
  • computeDismissableBanner(onDismissBanner: () => void): HTMLDivElement
  • computeNotAuthenticatedBanner(onOpenAuthenticationWindow: () => void, onDismissBanner: () => void): HTMLDivElement
  • displayErrorNotification(domContainer: HTMLDivElement): void
  • displayLoggedInNotification(domContainer: HTMLDivElement, username: string): void
  • displayLoggedOutNotification(domContainer: HTMLDivElement): void
  • showNotification(domContainer: HTMLDivElement, id: string, content: string, type: "error" | "success"): void

Generated using TypeDoc