ScreenSize

value class ScreenSize(val value: String)

Represents a screen size in the format "width x height" (e.g., "1920x1080").

Throws

if the screen size string is blank or exceeds MAX_SCREEN_SIZE_LENGTH characters.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int)

Creates a ScreenSize object from width and height.

constructor(value: String)

Properties

Link copied to clipboard

The string representation of the screen size.

Functions

Link copied to clipboard
open override fun toString(): String