elemental2.dom.TextTrack Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elemental2-dom Show documentation
Show all versions of elemental2-dom Show documentation
Thin Java abstractions for the native Browser APIs.
package elemental2.dom;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class TextTrack implements EventTarget {
public TextTrackCueList activeCues;
public TextTrackCueList cues;
public String mode;
public native void addCue(TextTrackCue cue);
public native void addEventListener(
String type, EventListener listener, EventTarget.AddEventListenerOptionsUnionType useCapture);
public native void addEventListener(String type, EventListener listener);
public native boolean dispatchEvent(Event evt);
public native void removeCue(TextTrackCue cue);
public native void removeEventListener(
String type, EventListener listener, EventTarget.RemoveEventListenerOptionsUnionType options);
public native void removeEventListener(String type, EventListener listener);
}