@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="ScreenOrientation")
public class ScreenOrientation
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
EventHandler |
onchange
The onchange property of the ScreenOrientation is an event handler fired whenever is the EventHandler called when the screen changes orientation.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ScreenOrientation() |
| Modifier and Type | Method and Description |
|---|---|
int |
angle()
The angle read-only property of the ScreenOrientation interface returns the document's current orientation angle.
|
Promise<java.lang.Void> |
lock(java.lang.String orientation)
The lock() property of the ScreenOrientation interface locks the orientation of the containing document to its default orientation.
|
java.lang.String |
type()
The type read-only property of the ScreenOrientation interface returns the document's current orientation type, one of "portrait-primary", "portrait-secondary", "landscape-primary", or "landscape-secondary".
|
void |
unlock()
The unlock() property of the ScreenOrientation interface unlocks the orientation of the containing document from its default orientation.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@Nullable public EventHandler onchange
@JsProperty(name="angle") public int angle()
@JsProperty(name="type") @Nonnull @OrientationType public java.lang.String type()
@Nonnull public Promise<java.lang.Void> lock(@OrientationLockType @Nonnull java.lang.String orientation)
public void unlock()