package js.html
extends EventTarget
Available on js
The ScreenOrientation interface of the the Screen Orientation API provides information about the current orientation of the document.
Documentation ScreenOrientation by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
read onlyangle:IntReturns the document's current orientation angle.
onchange:FunctionFired whenever is the EventHandler called when the screen changes orientation.
read onlytype:OrientationTypeReturns the document's current orientation type, one of "portrait-primary", "portrait-secondary", "landscape-primary", or "landscape-secondary".
lock(orientation:OrientationLockType):Promise<Void>Locks the orientation of the containing document to its default orientation and returns a Promise.
Throws:
null |
DOMError |
|---|
unlock():VoidUnlocks the orientation of the containing document from its default orientation.
Throws:
null |
DOMError |
|---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/ScreenOrientation.html