Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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,
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,
options?: boolean | EventListenerOptions,
): void;
unlock(): void;
}
var ScreenOrientation: {
prototype: ScreenOrientation;
}
;

§Extends

§Properties

§
readonly angle: number
[src]
§
onchange: ((this: ScreenOrientation, ev: Event) => any) | null
[src]
§
readonly type: OrientationType
[src]

§Methods

§
addEventListener<K extends keyof ScreenOrientationEventMap>(
type: K,
listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
lock(orientation: OrientationLockType): Promise<void>
[src]
§
removeEventListener<K extends keyof ScreenOrientationEventMap>(
type: K,
listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]
§
unlock(): void
[src]