Location class
Provides an object that describes a coordinate. An object of this type is required as a parameter in some methods.
Import statement
import com.applitools.eyes.android.common.Location;
Location method
Syntax
Location obj = new Location(region);
Location obj = new Location(x, y);
Parameters
region
Type: Region
The top-left corner of the Region object passed.
x
Type: int
The horizontal coordinate of the point in pixels (from the left of the image).
y
Type: int
The vertical coordinate of the point in pixels (from the top of image).
Return value
Type: Location