MiniAppAdDisplayDelegate

public protocol MiniAppAdDisplayDelegate : AnyObject

Undocumented

  • Load Interstitial ad This function preloads Interstitial ad before they are requested for display. Can be called multiple times to pre-load multiple ads.

    Declaration

    Swift

    func loadInterstitial(for adId: String, onLoaded: @escaping (Result<Void, Error>) -> Void)
  • Show a pre-loaded Interstitial ad

    Declaration

    Swift

    func showInterstitial(for adId: String, onClosed: @escaping (Result<Void, Error>) -> Void)
  • Load Rewarded ad This function preloads Interstitial ad before they are requested for display. Can be called multiple times to pre-load multiple ads.

    Declaration

    Swift

    func loadRewarded(for adId: String, onLoaded: @escaping (Result<Void, Error>) -> Void)
  • Show a pre-loaded Rewarded ad

    Declaration

    Swift

    func showRewarded(for adId: String, onClosed: @escaping (Result<MiniAppReward, Error>) -> Void)