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
AppOpenDelegate
protocol. 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
customProperties
An optional
CustomProperties
object containing custom properties, useful for tracking. -
Presents a previously loaded app open.
Declaration
Swift
public func present(fromViewController viewController: UIViewController)
Parameters
viewController
A view controller to present the ad.
-
Presents a previously loaded app open.
Declaration
Swift
public func present(fromViewController viewController: UIViewController, fromAdSpace adSpace: String)
Parameters
viewController
A view controller to present the ad.
adSpace
The 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) -> AppOpen
Parameters
placementId
A string containing a valid placement id.
Return Value
An
AppOpen
instance ready to load.