JWCue
@objcMembers
public final class JWCue : NSObject, JWJSONCodable, JWInitializableFromJSON
Defines a point of interest in the content.
-
Undocumented
Declaration
Swift
public let id: String? -
When the cue begins, defined by a number of seconds after the beginning of the content.
Declaration
Swift
public let begin: JWCueTime -
When the cue ends, defined by a number seconds after the beginning o the content.
Declaration
Swift
public let end: JWCueTime? -
Text to display in the timeline.
Declaration
Swift
public let text: String -
The type of cue.
Declaration
Swift
public let type: JWCueType -
Equality testing.
Declaration
Swift
public static func == (lhs: JWCue, rhs: JWCue) -> BoolParameters
lhsThe lefthand value.
rhsThe righthand value.
-
Undocumented
Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool
-
Initializes a
JWCuerepresentation of aJSONObject.The
JSONObjectis expected to have the following values. If required properties are not found within theJSONObject, this initializer returnsnil.“begin” Double or String
If this is a
Double, it represents a number of seconds from the beginning of the content, otherwise if it is aString, it represents a position defined by a pecentage of the duration, and is of the format"{percent}%".“cueType” String
Valid values are
"chapters"and"ads".“end” Double or String
If this is a
Double, it represents a number of seconds from the beginning of the content, otherwise if it is aString, it represents a position defined by a pecentage of the duration, and is of the format"{percent}%".“text” String
The text for the queue.
Declaration
Swift
public init?(from json: JSONObject)Return Value
A
JWCueobject, ornilif it does not succeed. -
Declaration
Swift
public func toJSONObject() -> JSONObject -
Calling this method converts a
JSONObjectinto aJWCue.The
JSONObjectis expected to have the following values. If required properties are not found within theJSONObject, this method returnnil.“begin” Double or String
If this is a
Double, it represents a number of seconds from the beginning of the content, otherwise if it is aString, it represents a position defined by a pecentage of the duration, and is of the format"{percent}%".“cueType” String
Valid values are
"chapters"and"ads".“end” Double or String
If this is a
Double, it represents a number of seconds from the beginning of the content, otherwise if it is aString, it represents a position defined by a pecentage of the duration, and is of the format"{percent}%".“text” String
The text for the queue.
Declaration
Swift
public static func from(json: JSONObject) -> `Self`?Return Value
A
JWCueobject, ornilif it does not succeed.