appium-android-driver
Version:
Android UiAutomator and Chrome support for Appium
27 lines • 1.37 kB
TypeScript
import type { AndroidDriver } from '../driver';
/**
* Updates the emulator configuration to show the
* image using the given properties when one opens the Camera app.
*
* @param sdkRoot ADB SDK root folder path
* @returns Promise that resolves to `true` if emulator services restart is needed
* to load the updated config or `false` if the current config is already up to date
* or does not need to be updated
*/
export declare function prepareEmulatorForImageInjection(this: AndroidDriver, sdkRoot: string): Promise<boolean>;
/**
* Updates the emulator configuration to show the given
* image on the foreground when one opens the Camera app.
* It is expected that the rear camera of the emulator is
* configured to show VirtualScene for this feature to work.
* It is expected that the Virtual Scene posters config is
* already prepared and loaded either manually or using the
* `injectedImageProperties` capability.
*
* @param payload Base64-encoded payload of a .png image to be injected
* @returns Promise that resolves when the image is injected.
* @throws {Error} If called on a non-emulator device.
* @throws {errors.InvalidArgumentError} If the payload is not a valid base64-encoded PNG.
*/
export declare function mobileInjectEmulatorCameraImage(this: AndroidDriver, payload: string): Promise<void>;
//# sourceMappingURL=image-injection.d.ts.map