BannerState
public struct BannerState
Encapsulates the parameters for a single banner ad load in SwiftUI.
-
The banner size configuration.
Declaration
Swift
public let size: BannerSize -
The ad request containing targeting and ad unit information.
Declaration
Swift
public let request: AdRequest -
Creates a new banner state. Each call produces a unique instance that triggers a load.
Declaration
Swift
public init(size: BannerSize, request: AdRequest)Parameters
sizeThe size type of the banner.
requestThe ad request.