updateScreen
suspend fun updateScreen(args: Emulation.UpdateScreenParameter, mode: CommandMode = CommandMode.DEFAULT): Emulation.UpdateScreenReturn
Updates specified screen parameters. Only supported in headless mode.
suspend fun updateScreen(screenId: String, left: Int? = null, top: Int? = null, width: Int? = null, height: Int? = null, workAreaInsets: Emulation.WorkAreaInsets? = null, devicePixelRatio: Double? = null, rotation: Int? = null, colorDepth: Int? = null, label: String? = null, isInternal: Boolean? = null): Emulation.UpdateScreenReturn
Updates specified screen parameters. Only supported in headless mode.
Parameters
screenId
Target screen identifier.
left
Offset of the left edge of the screen in pixels.
top
Offset of the top edge of the screen in pixels.
width
The width of the screen in pixels.
height
The height of the screen in pixels.
workAreaInsets
Specifies the screen's work area.
devicePixelRatio
Specifies the screen's device pixel ratio.
rotation
Specifies the screen's rotation angle. Available values are 0, 90, 180 and 270.
colorDepth
Specifies the screen's color depth in bits.
label
Specifies the descriptive label for the screen.
isInternal
Indicates whether the screen is internal to the device or external, attached to the device. Default is false.