ScreenOrientationOptions Class
The host hooks of the Screen Orientation API (https://w3c.github.io/screen-orientation/, BrowsingContextOptions.ScreenOrientation).
public sealed class ScreenOrientationOptionsConstructors
| Name | Description |
|---|---|
| ScreenOrientationOptions() |
ScreenOrientationOptions()
public ScreenOrientationOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Provider | Gets or sets the screen of the device (screen.orientation): its orientation, and the locks of the documents, e.g. a ScreenOrientationProvider whose ScreenOrientationProvider.DeviceOrientation is set by the application to simulate a rotation, or a subclass that locks the screen of the operating system. A provider can be shared by several browsing contexts. The default is null: the screen of a desktop computer, whose orientation is the primary orientation of the shape of the screen (angle 0), and which cannot be locked (lock() is rejected with a NotSupportedError). |
Provider
ScreenOrientation.csGets or sets the screen of the device (screen.orientation): its orientation, and the locks of the documents, e.g. a ScreenOrientationProvider whose ScreenOrientationProvider.DeviceOrientation is set by the application to simulate a rotation, or a subclass that locks the screen of the operating system. A provider can be shared by several browsing contexts. The default is null: the screen of a desktop computer, whose orientation is the primary orientation of the shape of the screen (angle 0), and which cannot be locked (lock() is rejected with a NotSupportedError).
public ScreenOrientationProvider? Provider { get; init; }