Screen


How to use the Screen class of the bit Butil?

Usage
To use the browser screen features you need to inject the Bit.Butil.Screen class and use it like this:
@inject Bit.Butil.Screen screen

@code {
    var screenWidth = await screen.GetWidth();
}
Methods

GetAvailableHeight:
Specifies the height of the screen, in pixels, minus permanent or semipermanent user interface features displayed by the operating system, such as the Taskbar on Windows (MDN).



GetAvailableWidth:
Returns the amount of horizontal space in pixels available to the window (MDN).



GetColorDepth:
Returns the color depth of the screen (MDN).



GetHeight:
Returns the height of the screen in pixels (MDN).



IsExtended:
Returns true if the user's device has multiple screens, and false if not (MDN).



GetPixelDepth:
Gets the bit depth of the screen (MDN).



GetWidth:
Returns the width of the screen (MDN).



AddChange, RemoveChange:
Fired on a specific screen when it changes in some way — width or height, available width or height, color depth, or orientation (MDN).