AppOpenAd

@objc(YMAAppOpenAd)
@objcMembers
public class AppOpenAd : NSObject

This class is responsible for showing an app open ad.

  • Information data for ad

    Declaration

    Swift

    public private(set) lazy var adInfo: AdInfo? { get set }
  • Tracks ad lifecycle events.

    Declaration

    Swift

    public weak var delegate: AppOpenAdDelegate? { get set }
  • Use this method to display an app open ad after preloading.

    Declaration

    Swift

    @objc(showFromViewController:)
    public func show(from viewController: UIViewController?)

    Parameters

    viewController

    An object of the UIViewController class, which is used to display an app open ad.