Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Ima3

Implements

Index

Constructors

constructor

  • new Ima3(canvas: HTMLCanvasElement, adTagUrl: string): Ima3

Properties

Private adContent

adContent: HTMLElement

Private adDisplay

adDisplay: AdDisplayContainer

Private adLoader

adLoader: AdsLoader

adManager

adManager: H5AdWrapper

Private adRequested

adRequested: boolean = false

Private adTagUrl

adTagUrl: string = ""

adsEnabled

adsEnabled: boolean = true

Private adsManager

adsManager: AdsManager

Private gameContent

gameContent: any

Private googleEnabled

googleEnabled: boolean = false

Private resizeListener

resizeListener: function

Type declaration

    • (): void
    • Returns void

Methods

adAvailable

  • adAvailable(adType: AdType): boolean

Private areAdsEnabled

  • areAdsEnabled(): void
  • Checks if the ads are enabled (e.g; adblock is enabled or not)

    Returns void

destroyAd

  • destroyAd(): void

hideAd

  • hideAd(): void

Private onAdError

  • onAdError(error: any): void

Private onAdEvent

  • onAdEvent(adEvent: any): void
  • Generic ad events are handled here

    Parameters

    • adEvent: any

    Returns void

Private onAdManagerLoader

  • onAdManagerLoader(adsManagerLoadedEvent: AdsManagerLoadedEvent): void
  • Called when the ads manager was loaded. We register all ad related events here, and initialize the manager with the game width/height

    Parameters

    • adsManagerLoadedEvent: AdsManagerLoadedEvent

    Returns void

Private onContentPauseRequested

  • onContentPauseRequested(): void
  • When the ad starts playing, and the game should be paused

    Returns void

Private onContentResumeRequested

  • onContentResumeRequested(): void

Private parseCustomParams

  • parseCustomParams(customParams: ICustomParams | undefined): string

preloadAd

  • preloadAd(): void

setManager

showAd

  • Doing an ad request, if anything is wrong with the lib (missing ima3, failed request) we just dispatch the contentResumed event Otherwise we display an ad

    Parameters

    Returns void

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