appium-android-driver
Version:
Android UiAutomator and Chrome support for Appium
26 lines • 980 B
TypeScript
import type { AndroidDriver } from '../driver';
/**
* Set the Ui appearance.
*
* @since Android 10
* @param mode The UI mode to set the value for.
* Supported values are: 'night' and 'car'
* @param value The actual mode value to set.
* Supported value for different UI modes are:
* - night: yes|no|auto|custom_schedule|custom_bedtime
* - car: yes|no
* @returns Promise that resolves when the UI mode is set.
*/
export declare function mobileSetUiMode(this: AndroidDriver, mode: string, value: string): Promise<void>;
/**
* Get the Ui appearance.
*
* @since Android 10
* @param mode The UI mode to get the value for.
* Supported values are: 'night' and 'car'
* @returns Promise that resolves to the actual state for the queried UI mode,
* for example 'yes' or 'no'
* @throws {Error} If the command response cannot be parsed.
*/
export declare function mobileGetUiMode(this: AndroidDriver, mode: string): Promise<string>;
//# sourceMappingURL=appearance.d.ts.map