AdFormat
@objcMembers
public class AdFormat : NSObject, OptionSet
AdFormat is a class that represents different types of ad formats using an OptionSet.
-
The underlying type of the raw value.
Declaration
Swift
public typealias RawValue = Int -
The raw integer value representing the ad format.
Declaration
Swift
public let rawValue: Int -
The string representation of the ad format.
Declaration
Swift
public private(set) var stringEquivalent: String? { get } -
Initializes an
AdFormatinstance with a specified raw value and its string equivalent.Declaration
Swift
public convenience init(rawValue: RawValue, stringEquivalent: String)Parameters
rawValueThe raw value representing the ad format.
stringEquivalentA string equivalent of the ad format.
-
Initializes an
AdFormatinstance with a specified raw value.Declaration
Swift
public required init(rawValue: RawValue)Parameters
rawValueThe raw value representing the ad format.
-
Represents a banner ad format.
Declaration
Swift
public static let banner: AdFormat -
Represents a video ad format.
Declaration
Swift
public static let video: AdFormat -
Represents a native ad format.
Declaration
Swift
public static let native: AdFormat -
An array containing all cases of ad formats.
Declaration
Swift
public static var allCases: [AdFormat] { get }