Skip to main content

ChromeEmulationInfo class

Objects of this class are used to configure the Ultrafast Grid to render checkpoints by emulating a device by using Chrome mobile emulation.

Import statement

import com.applitools.eyes.visualgrid.model.ChromeEmulationInfo;

ChromeEmulationInfo method

Syntax

ChromeEmulationInfo obj = new ChromeEmulationInfo(deviceName, screenOrientation);

Parameters

deviceName

Type: DeviceName

The name of the device, a value from the set of devices defined by DeviceName.

screenOrientation

Type: ScreenOrientation

If the device should be rendered in portrait (vertical) or landscape (horizontal) orientation.

Return value

Type: ChromeEmulationInfo

Remarks

The viewport width and height used to identify the baseline, is defined implicitly by the screen characteristics of the device.

getDeviceName method

Syntax

String value = obj.getDeviceName();

Parameters

This method does not take any parameters.

Return value

Type: String

getScreenOrientation method

Syntax

ScreenOrientation value = obj.getScreenOrientation();

Parameters

This method does not take any parameters.

Return value

Type: ScreenOrientation

setDeviceName method

Syntax

obj.setDeviceName(deviceName);

Parameters

deviceName

Type: DeviceName

deviceName

Return value

Type: void

setScreenOrientation method

Syntax

obj.setScreenOrientation(screenOrientation);

Parameters

screenOrientation

Type: ScreenOrientation

screenOrientation

Return value

Type: void