Class ScreenOrientationLockChangedEventArgs
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
-
EventArgsScreenOrientationLockChangedEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.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
LockedboolWhether the screen orientation is currently locked.
OrientationScreenOrientationThe 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
Orientation
The orientation lock type requested by the page. Only set when locked is true.
public ScreenOrientation? Orientation { get; init; }