Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ogone/src/ogone.dom.d.ts>ScreenOrientation

Advanced Web Composition for Future
Latest
interface ScreenOrientation
implements EventTarget
import { type ScreenOrientation } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

Properties

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

Methods

lock(orientation: OrientationLockType): Promise<void>
unlock(): void
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
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