AdInfo
@objc
public class AdInfo : NSObject
Container object of the general information of an Ad.
-
Position of the ad, this value will be dependant on the number defined by the ad vendor
Declaration
Swift
public var position: Int
-
Title of the ad, if available
Declaration
Swift
public var title: String
-
Description of the ad, if available
Declaration
Swift
public var adDescription: String
-
Duration of the ad, if available
Declaration
Swift
public var duration: Double
-
Third-party provider of the ads
Declaration
Swift
public var vendor: String
-
Creates a new instance of the AdInfo object
The default value of the vendor will be
GOOGLE
Declaration
Swift
@objc public init(title: String, adDescription: String, position: Int, duration: Double, vendor: String = AdVendor.GOOGLE)
Parameters
title
String representation of the title of the stream
adDescription
String representation of the description of the stream
position
Value of the position of the ad. There is no restriccion in regards to the value this parameter must have.
duration
Duration of the ad in seconds
vendor
Ad provider company