AppOpenAd

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

This class is responsible for showing an app open ad.

  • Information about the ad.

    Declaration

    Swift

    @MainActor
    public let adInfo: AdInfo?
  • Tracks ad lifecycle events.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Parameters

    viewController

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