TextTrack
Generated.swift:15895class TextTrack
class TextTrack
import DOM
class EventTarget
protocol Any_AudioTrack_or_TextTrack_or_VideoTrack : ConvertibleToJSValue
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Escapable
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
required init(unsafelyWrapping jsObject: JSObject)
override class var constructor: JSFunction? { get }
@ReadonlyAttribute var activeCues: TextTrackCueList? { get }
@ReadonlyAttribute var cues: TextTrackCueList? { get }
@ReadonlyAttribute var id: String { get }
@ReadonlyAttribute var inBandMetadataTrackDispatchType: String { get }
@ReadonlyAttribute var kind: TextTrackKind { get }
@ReadonlyAttribute var label: String { get }
@ReadonlyAttribute var language: String { get }
@ReadWriteAttribute var mode: TextTrackMode { get set }
@ClosureAttribute1Optional var oncuechange: EventHandler { get set }
@ReadonlyAttribute var sourceBuffer: SourceBuffer? { get }
func addCue(cue: TextTrackCue)
func removeCue(cue: TextTrackCue)