FPAdBreak
@objc
@objcMembers
public class FPAdBreak : NSObject
An ad break consisting of one or more ads and an indication of the point in time when it should start. Ad breaks that are marked as Roll.pre or Roll.post can only contain one ad. In order to have multiple ads during an ad break, an offset needs to be past. This class provides two different constructors to enforce the above fact.
-
This enum can be used for creating an ad break that is either a pre-roll or a post-roll, instead of specifying an offset.
See moreDeclaration
Swift
@objc public enum Roll : Int
-
Creates a pre-roll or a post-roll ad break that consists of a single ad.
Declaration
Swift
public init(adTag: String, roll: Roll)
Parameters
adTag
The ad tag url.
roll
Whether it’s a pre-roll or a post-roll.
-
Creates an ad break that will start playing at the specified offset.
Declaration
Swift
public init(adTags: Array<String>, offset: Int)
Parameters
adTags
A list of ad tag urls.
offset
The offset (in seconds) when the ad break should start.