JWAdBreak

@objcMembers
public final class JWAdBreak : NSObject, JWJSONEncodable

A location or point in time where one or more ads may be scheduled for delivery.

  • Contains the VAST ad assembled urls used by our player to retrieve ads.

    Note

    If you are calling this from Objective-C, use tagArray instead.

    Declaration

    Swift

    public internal(set) var tags: [URL] { get }
  • The offset describes the point in time at which to play the ad.

    Note

    Supported formats are:
    • pre: specifies that the ad should be played before the video content.
    • post: specifies that the ad should be played after the video content.
    • seconds - ‘50’
    • fractional seconds - ‘50.5’
    • percentage of the entire video - ‘50%’

    Declaration

    Swift

    public internal(set) var offset: JWAdOffset { get }
  • The number of seconds to delay the ability to skip the ad.

    Declaration

    Swift

    public internal(set) var skipOffset: TimeInterval? { get }
  • The ad type defines where and how the ad will be displayed.

    Note

    Currently only .linear is supported.

    Declaration

    Swift

    public internal(set) var type: JWAdType { get }
  • Overridden to provide more accurate value comparisons.

    Declaration

    Swift

    public override func isEqual(_ object: Any?) -> Bool
  • Undocumented

    Declaration

    Swift

    public override func copy() -> Any

JWJSONCodable