AppOpen
public class AppOpen
This class represents an AppOpen Ad format.
You call the static method create(placementId:) to create a new app open instance.
-
The placement Id for this app open.
Declaration
Swift
public let placementId: String -
The object that acts as the delegate of the app open.
The delegate must adopt the
AppOpenDelegateprotocol. The delegate is not retained.Declaration
Swift
public weak var delegate: AppOpenDelegate? -
Indicates if the app open is ready to be presented.
Declaration
Swift
public var isReady: Bool { get } -
Starts a new load call.
Declaration
Swift
public func load(customProperties: CustomProperties = CustomProperties())Parameters
customPropertiesAn optional
CustomPropertiesobject containing custom properties, useful for tracking. -
Presents a previously loaded app open.
Declaration
Swift
public func present(fromViewController viewController: UIViewController)Parameters
viewControllerA view controller to present the ad.
-
Presents a previously loaded app open.
Declaration
Swift
public func present(fromViewController viewController: UIViewController, fromAdSpace adSpace: String)Parameters
viewControllerA view controller to present the ad.
adSpaceThe space in your app from where the ad will be shown (eg: dashboard, settings). Used for tracking.
-
Creates a new instance of an
AppOpen.Declaration
Swift
public static func create(placementId: String) -> AppOpenParameters
placementIdA string containing a valid placement id.
Return Value
An
AppOpeninstance ready to load.