appium-android-driver
Version:
Android UiAutomator and Chrome support for Appium
16 lines • 898 B
TypeScript
import type { AndroidDriver } from '../driver';
declare const SUPPORTED_ACTIONS: readonly ["whitelistAdd", "whitelistRemove"];
/**
* This is a wrapper to 'adb shell dumpsys deviceidle' interface.
* Read https://www.protechtraining.com/blog/post/diving-into-android-m-doze-875
* for more details.
*
* @param action The action name to execute.
* @param packages Either a single package or multiple packages to add or remove from the idle whitelist.
* @returns Promise that resolves when the action is completed.
* @throws {errors.InvalidArgumentError} If packages argument is not a string or array.
* @throws {errors.InvalidArgumentError} If action is not one of the supported actions.
*/
export declare function mobileDeviceidle(this: AndroidDriver, action: typeof SUPPORTED_ACTIONS[number], packages?: string | string[]): Promise<void>;
export {};
//# sourceMappingURL=deviceidle.d.ts.map