MiniAppAdDisplayer
public class MiniAppAdDisplayer : NSObject, MiniAppAdDisplayDelegate
This class is the basic class meant to be overridden when implementing ads SDK
- Tag: MiniAppAdDisplayer
-
Undocumented
Declaration
Swift
public init(with delegate: MiniAppAdDisplayDelegate)
-
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
public func loadInterstitial(for adId: String, onLoaded: @escaping (Result<Void, Error>) -> Void)
-
Show a pre-loaded Interstitial ad
Declaration
Swift
public 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
public func loadRewarded(for adId: String, onLoaded: @escaping (Result<Void, Error>) -> Void)
-
Show a pre-loaded Rewarded ad
Declaration
Swift
public func showRewarded(for adId: String, onClosed: @escaping (Result<MiniAppReward, Error>) -> Void)