ScreenOrientation
interface ScreenOrientation extends EventTarget {
readonly angle: number;
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
readonly type: OrientationType;
addEventListener<K extends keyof ScreenOrientationEventMap>(
type: K,
listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;lock(orientation: OrientationLockType): Promise<void>;
removeEventListener<K extends keyof ScreenOrientationEventMap>(
type: K,
listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;unlock(): void;
}var ScreenOrientation: {
prototype: ScreenOrientation;
new (): ScreenOrientation;
};§Extends
§Properties
§
onchange: ((this: ScreenOrientation, ev: Event) => any) | null
[src]§
readonly type: OrientationType
[src]§Methods
§
addEventListener<K extends keyof ScreenOrientationEventMap>(
[src]type: K,
listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
lock(orientation: OrientationLockType): Promise<void>
[src]§
removeEventListener<K extends keyof ScreenOrientationEventMap>(
[src]type: K,
listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void