interface ScreenOrientation {
    angle: number;
    onchange: ((this, ev) => any);
    type: OrientationType;
    addEventListener<K>(type, listener, options?): void;
    addEventListener(type, listener, options?): void;
    dispatchEvent(event): boolean;
    lock(orientation): Promise<void>;
    removeEventListener<K>(type, listener, options?): void;
    removeEventListener(type, listener, options?): void;
    unlock(): void;
}

Hierarchy

  • EventTarget
    • ScreenOrientation

Properties

angle: number
onchange: ((this, ev) => any)

Type declaration

Methods

  • Type Parameters

    • K extends "change"

    Parameters

    Returns void

  • Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    • event: Event

    Returns boolean

  • Parameters

    Returns Promise<void>

  • Type Parameters

    • K extends "change"

    Parameters

    Returns void

  • Parameters

    Returns void

  • Returns void

Generated using TypeDoc