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]) -> JWAdBreakBuilderParameters
tagsAn array of VAST ad urls.
Return Value
The builder, so setters can be chained.
-
Sets the offset of the ad break. The default value is
.pre.Declaration
Swift
@discardableResult public func offset(_ offset: JWAdOffset) -> JWAdBreakBuilderParameters
offsetThe offset of the ad break.
Return Value
The builder, so setters can be chained.
JWAdBreakBuilder Class Reference