JWAdBreakBuilder

@objcMembers
public class JWAdBreakBuilder : NSObject, JWBuilder

The builder for JWAdBreak.

  • Declaration

    Swift

    public typealias Output = JWAdBreak
  • Builds an ad break based off the settings provided.

    Throws

    throws An error if the ad break is not setup properly.

    Declaration

    Swift

    public func build() throws -> JWAdBreak
  • Sets an array of ad urls.

    Declaration

    Swift

    @discardableResult
    public func tags(_ tags: [URL]) -> JWAdBreakBuilder

    Parameters

    tags

    An array of VAST ad urls.

    Return Value

    The builder, so setters can be chained.

  • Sets the offset of the ad break. Defaults to .pre

    Declaration

    Swift

    @discardableResult
    public func offset(_ offset: JWAdOffset) -> JWAdBreakBuilder

    Parameters

    offset

    The offset of the ad break.

    Return Value

    The builder, so setters can be chained.