setVisibleSize method

  1. @Deprecated('This command is deprecated')
Future<void> setVisibleSize(
  1. int width,
  2. int height
)

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. width Frame width (DIP). height Frame height (DIP).

Implementation

@Deprecated('This command is deprecated')
Future<void> setVisibleSize(int width, int height) async {
  await _client.send('Emulation.setVisibleSize', {
    'width': width,
    'height': height,
  });
}