Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

  • new Ads(gs: GameScore, adapter: default, platformConfig: PlatformConfig): Ads

Properties

_events: EventLite = ...
adsInfo: PlayerAdsInfo
banners: Record<BannerType, Banner>
fullscreenBanner: Banner
fullscreenDisplayIntervalId: number = 0
isAdblockEnabled: boolean = false
isFullscreenPlaying: boolean = false
isPreloaderPlaying: boolean = false
isRewardedPlaying: boolean = false
isStickyPlaying: boolean = false
preloaderBanner: Banner
rewardedVideo: Banner
stickyBanner: Banner
stickyRefreshIntervalId: number = 0

Accessors

  • get isFullscreenAvailable(): boolean
  • get isPreloaderAvailable(): boolean
  • get isRewardedAvailable(): boolean
  • get isStickyAvailable(): boolean

Methods

  • _checkLimitsExpired(isInit: boolean): void
  • _saveAdsInfo(): void
  • _trackBannerDisplay(bannerType: BannerType): void
  • checkAdblock(): Promise<boolean>
  • closeSticky(): Promise<void>
  • isBannerLimitReached(bannerType: BannerType): boolean
  • isBannerLimitTypeReached(bannerType: BannerType, type: keyof BannerLimits): boolean
  • Parameters

    • bannerType: BannerType
    • type: keyof BannerLimits

    Returns boolean

  • off<ET>(type: ET, handler: ((event: AdsEvents[ET]) => void)): void
  • on<ET>(type: ET, handler: ((event: AdsEvents[ET]) => void)): void
  • once<ET>(type: ET, handler: ((event: AdsEvents[ET]) => void)): void
  • refreshSticky(): Promise<boolean>
  • showFullscreen(): Promise<boolean>
  • showPreloader(): Promise<boolean>
  • showRewardedVideo(): Promise<boolean>
  • showSticky(): Promise<boolean>

Generated using TypeDoc