appium-android-driver
Version:
Android UiAutomator and Chrome support for Appium
54 lines • 2.07 kB
TypeScript
import type { Size, Rect, StringRecord } from '@appium/types';
import type { AndroidDriver } from '../driver';
import type { SmsListResult, ListSmsOpts } from './types';
/**
* Gets the window size.
*
* @returns Promise that resolves to the window size (width, height).
* @throws {errors.NotImplementedError} This method is not implemented.
*/
export declare function getWindowSize(this: AndroidDriver): Promise<Size>;
/**
* Gets the window rectangle (position and size).
*
* @returns Promise that resolves to the window rectangle.
*/
export declare function getWindowRect(this: AndroidDriver): Promise<Rect>;
/**
* Sets the URL for deep-linking inside an app.
*
* We override setUrl to take an android URI which can be used for deep-linking
* inside an app, similar to starting an intent.
*
* @param uri The Android URI to navigate to.
* @returns Promise that resolves when the URI is opened.
*/
export declare function setUrl(this: AndroidDriver, uri: string): Promise<void>;
/**
* Gets the display density of the device.
*
* @returns Promise that resolves to the display density value.
* @throws {Error} If the display density cannot be retrieved.
*/
export declare function getDisplayDensity(this: AndroidDriver): Promise<number>;
/**
* Gets the list of notifications from the device.
*
* @returns Promise that resolves to an object containing notification information.
*/
export declare function mobileGetNotifications(this: AndroidDriver): Promise<StringRecord>;
/**
* Lists SMS messages from the device.
*
* @param opts Optional parameters for listing SMS messages.
* @returns Promise that resolves to the SMS list result.
*/
export declare function mobileListSms(this: AndroidDriver, opts?: ListSmsOpts): Promise<SmsListResult>;
/**
* Opens the notifications panel.
*
* @returns Promise that resolves when the notifications panel is opened.
* @throws {errors.NotImplementedError} This method is not implemented.
*/
export declare function openNotifications(this: AndroidDriver): Promise<void>;
//# sourceMappingURL=misc.d.ts.map