AdBreak_Objc

@objc(THEOplayerAdBreak)
public protocol AdBreak_Objc

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

    @objc(ads)
    var ads_Objc: [Ad_Objc] { 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 }