appium-uiautomator2-driver
Version:
UiAutomator2 integration for Appium
39 lines • 1.55 kB
TypeScript
import type { Rect, Size } from '@appium/types';
import type { AndroidUiautomator2Driver } from '../driver';
import type { RelativeRect } from './types';
/**
* Gets the status bar height in pixels.
* @returns The status bar height in pixels.
*/
export declare function getStatusBarHeight(this: AndroidUiautomator2Driver): Promise<number>;
/**
* Gets the device pixel ratio.
* @returns The device pixel ratio as a string.
*/
export declare function getDevicePixelRatio(this: AndroidUiautomator2Driver): Promise<string>;
/**
* Gets the viewport rectangle coordinates.
* @returns The viewport rectangle (left, top, width, height), accounting for status bar height.
*/
export declare function getViewPortRect(this: AndroidUiautomator2Driver): Promise<RelativeRect>;
/**
* Returns the viewport coordinates.
* @returns The viewport rectangle (left, top, width, height).
*/
export declare function mobileViewPortRect(this: AndroidUiautomator2Driver): Promise<RelativeRect>;
/**
* Gets the window rectangle (W3C endpoint).
* @returns The window rectangle (x, y, width, height).
*/
export declare function getWindowRect(this: AndroidUiautomator2Driver): Promise<Rect>;
/**
* Gets the display density.
* @returns The display density value.
*/
export declare function getDisplayDensity(this: AndroidUiautomator2Driver): Promise<number>;
/**
* Gets the window size.
* @returns The window size (width, height).
*/
export declare function getWindowSize(this: AndroidUiautomator2Driver): Promise<Size>;
//# sourceMappingURL=viewport.d.ts.map