AdBreak
public protocol AdBreak
An AdBreak is an object that represents a collection of ads that are scheduled at a certain time.
-
An array of all the ads that are available in the current AdBreak.
Declaration
Swift
var ads: [Ad] { get }
-
Indicates the duration of the ad break, in seconds.
Remark
- Ads are lazily loaded. This property becomes available when all ads are loaded.
- If the maximum duration is not set, it will return -1.
Declaration
Swift
var maxDuration: Int { get }
-
Indicates the remaining duration of the ad break, in seconds.
Remark
- Ads are lazily loaded. This property becomes available when all ads are loaded.
- This feature is not available in the Google IMA integration and will default to -1.
Declaration
Swift
var maxRemainingDuration: Double { get }
-
The time offset at which point the content will be paused to play the ad break, in seconds.
Declaration
Swift
var timeOffset: Int { get }