ScreenOrientationLockChangedParameter

@Serializable
data class ScreenOrientationLockChangedParameter(val locked: Boolean, val orientation: Emulation.ScreenOrientation? = null)

Fired when a page calls screen.orientation.lock() or screen.orientation.unlock() while device emulation is enabled. This allows the DevTools frontend to update the emulated device orientation accordingly.

Constructors

Link copied to clipboard
constructor(locked: Boolean, orientation: Emulation.ScreenOrientation? = null)

Properties

Link copied to clipboard

Whether the screen orientation is currently locked.

Link copied to clipboard

The orientation lock type requested by the page. Only set when locked is true.