Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Interstitial

en

Interstitial Ad class, provide the Interstitial Ad related functionality, NOTE: you can get the adUnitId of a Interstitial Ad object by interstitial.adUnitId

zh

插屏广告类,提供插屏广告相关的功能,注:您可以通过interstitial.adUnitId获取一个插屏广告对象的广告位ID

Hierarchy

  • Interstitial

Index

Properties

Readonly adUnitId

adUnitId: string

Accessors

ready

  • get ready(): boolean
  • en

    Indicate whether current Interstitial Ad is ready

    zh

    指示当前插屏广告是否准备好了

    Returns boolean

Methods

destroyAd

  • destroyAd(): void
  • en

    Destroy Interstitial Ad object, after destroyed, you cannot use this object again, you need to create a new object

    zh

    销毁插屏广告对象,销毁后不能再使用本对象,需要重新创建新的对象

    en

    NOTE:This method is only used to prevent memory leak, you cannot use it to stop displaying Ad, if the number of Interstitial Ad objects is small, you can choose not to destroy explicitly

    zh

    注:该方法用于防止内存泄漏,并不能用于停止广告的显示,如果创建广告对象数量不多,可以选择不显式销毁

    Returns void

entryAdScenario

  • entryAdScenario(sceneId: string): void
  • en

    Specify the scenario of current Interstitial Ad

    zh

    指定当前插屏广告的场景

    Parameters

    • sceneId: string

    Returns void

loadAd

  • loadAd(): void
  • en

    Load Interstitial Ad, NOTE: this is only needed when you don't enable the autoReload mode

    zh

    加载插屏广告,注:这只有在您没有开启自动加载模式(autoReload)的时候才需要调用

    Returns void

setAdListener

  • en

    Set the Interstitial Ad listener of this Interstitial Ad object

    zh

    设置本插屏广告对象的事件监听器

    Parameters

    Returns void

showAd

  • showAd(sceneId: string): void
  • en

    Show Interstitial Ad, NOTE: sceneId can be empty string ''

    zh

    展示插屏广告,注:sceneId可以为空字符串''

    Parameters

    • sceneId: string

    Returns void

Static destroyAllAds

  • destroyAllAds(): void
  • en

    Destroy All Interstitial Ad objects

    zh

    销毁所有插屏广告对象

    Returns void

Generated using TypeDoc