@applitools/eyes-browser
Version:
36 lines (35 loc) • 1.1 kB
TypeScript
import { ScreenOrientationEnum as ScreenOrientation } from '../enums/ScreenOrientation';
/**
* Represents an Android device target with optional orientation configuration.
* This class provides a fluent API for specifying device orientation.
*/
export declare class AndroidDeviceTarget {
readonly deviceName: string;
private screenOrientation?;
constructor(deviceName: string);
/**
* Sets the device orientation to landscape.
* @returns this instance for method chaining
*/
landscape(): this;
/**
* Sets the device orientation to portrait.
* @returns this instance for method chaining
*/
portrait(): this;
/**
* Gets the configured orientation for this device target.
* @returns the screen orientation, or undefined if not set
*/
getOrientation(): ScreenOrientation | undefined;
/**
* Gets the device name.
* @returns the device name string
*/
getDeviceName(): string;
/**
* String representation of this device target.
* @returns the device name
*/
toString(): string;
}