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
JWNextUpStylestructure.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) -> JWNextUpStyleBuilderParameters
percentageThe 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) -> JWNextUpStyleBuilderParameters
secondsThe time in seconds to wait to display the card.
Return Value
The builder, so setters can be chained.
JWNextUpStyleBuilder Class Reference