Domains Accessibility Animation ApplicationCache CSS CacheStorage Console DOM DOMDebugger DOMStorage Database Debugger DeviceOrientation Emulation FileSystem HeapProfiler IndexedDB Input Inspector LayerTree Memory Network Page Power Profiler Rendering Runtime ScreenOrientation Security ServiceWorker Timeline Tracing Worker
Chrome Debugger Protocol Viewer

ScreenOrientation Domain

Methods

setScreenOrientationOverride

Overrides the Screen Orientation.

Parameters
angle
integer Orientation angle
type
OrientationType Orientation type

clearScreenOrientationOverride

Clears the overridden Screen Orientation.

Types

OrientationType

Orientation type

Type: string

Allowed values

portraitPrimary, portraitSecondary, landscapePrimary, landscapeSecondary.