JWNextUpStyleBuilder

@objcMembers
public class JWNextUpStyleBuilder : NSObject, JWBuilder

Used to build a new JWNextUpStyle to configure the next up card.

Note

An Offset is required.
  • Declaration

    Swift

    public typealias Output = JWNextUpStyle
  • Builds a JWNextUpStyle structure.

    Throws

    throws An error if the style is not setup properly.

    Declaration

    Swift

    @objc
    public func build() throws -> JWNextUpStyle
  • When to pop up the card expressed as a percentage of the duration of the video. A negative value specifies from the end of the video. Must be a value from -100 - 100.

    Declaration

    Swift

    @discardableResult
    public func timeOffset(percentage: Float) -> JWNextUpStyleBuilder

    Parameters

    percentage

    The relative percentage of the media duration to show the card.

    Return Value

    The builder, so setters can be chained.

  • When to pop up the card expressed as a number of seconds. A negative value specifies from the end of the video.

    Declaration

    Swift

    @discardableResult
    public func timeOffset(seconds: TimeInterval) -> JWNextUpStyleBuilder

    Parameters

    seconds

    The time in seconds to wait to display the card.

    Return Value

    The builder, so setters can be chained.