All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.applitools.eyes.visualgrid.model.DeviceTarget Maven / Gradle / Ivy

There is a newer version: 5.69.0
Show newest version
package com.applitools.eyes.visualgrid.model;

public class DeviceTarget {
    private final String deviceName;
    private ScreenOrientation orientation;

    protected DeviceTarget(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public ScreenOrientation getOrientation() {
        return orientation;
    }

    public DeviceTarget orientation(ScreenOrientation orientation) {
        this.orientation = orientation;
        return this;
    }

    public DeviceTarget landscape() {
        orientation(ScreenOrientation.LANDSCAPE);
        return this;
    }

    public DeviceTarget portrait() {
        orientation(ScreenOrientation.PORTRAIT);
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy