setVisibleSize

suspend fun setVisibleSize(args: Emulation.SetVisibleSizeParameter, mode: CommandMode = CommandMode.DEFAULT)

Deprecated

Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.


suspend fun setVisibleSize(width: Int, height: Int)

Deprecated

Resizes the frame/viewport of the page. Note that this does not affect the frame's container (e.g. browser window). Can be used to produce screenshots of the specified size. Not supported on Android.

Parameters

width

Frame width (DIP).

height

Frame height (DIP).