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 class ScreenOrientationLockChangedEventArgs : EventArgs
- Inheritance
-
ScreenOrientationLockChangedEventArgs
- Inherited Members
Properties
Locked
Whether the screen orientation is currently locked.
[JsonPropertyName("locked")]
public bool Locked { get; set; }
Property Value
Orientation
The orientation lock type requested by the page. Only set when locked is true.
[JsonPropertyName("orientation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ScreenOrientation? Orientation { get; set; }