WebIDLpedia

ScreenOrientation interface

Definition

Screen Orientation defines ScreenOrientation



[Exposed=Window]
interface ScreenOrientation : EventTarget {
  Promise<undefined> lock(OrientationLockType orientation);
  undefined unlock();
  readonly attribute OrientationType type;
  readonly attribute unsigned short angle;
  attribute EventHandler onchange;
};

Methods and attributes that return objects implementing ScreenOrientation

Referring IDL interfaces/dictionaries