Table of Contents

Class ScreenOrientationLockChangedEventArgs

Namespace
Selenium.WebDriver.BiDi.Cdp.Emulation
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

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.

public sealed record ScreenOrientationLockChangedEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<ScreenOrientationLockChangedEventArgs>
Inheritance
EventArgs
ScreenOrientationLockChangedEventArgs
Implements
IEquatable<EventArgs>
Inherited Members
EventArgs.ToString()
EventArgs.GetHashCode()
EventArgs.Equals(EventArgs)
EventArgs.<Clone>$()
EventArgs.BiDi
EventArgs.AdditionalData
EventArgs.AdditionalMessageData

Constructors

ScreenOrientationLockChangedEventArgs(bool, ScreenOrientation?)

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.

public ScreenOrientationLockChangedEventArgs(bool Locked, ScreenOrientation? Orientation = null)

Parameters

Locked bool

Whether the screen orientation is currently locked.

Orientation ScreenOrientation

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

Properties

Locked

Whether the screen orientation is currently locked.

public bool Locked { get; init; }

Property Value

bool

Orientation

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

public ScreenOrientation? Orientation { get; init; }

Property Value

ScreenOrientation