appium-android-driver
Version:
Android UiAutomator and Chrome support for Appium
97 lines • 3.78 kB
TypeScript
import type { AndroidDriver } from '../../driver';
import type { GsmAction, GsmSignalStrength, GsmVoiceState, PowerACState, NetworkSpeed } from '../types';
/**
* @deprecated Use mobile: extension
*/
export declare function fingerprint(this: AndroidDriver, fingerprintId: string | number): Promise<void>;
/**
* Simulates a fingerprint scan on the emulator.
*
* @param fingerprintId - The value is the `finger_id` for the finger that was "scanned". It is a
* unique integer that you assign for each virtual fingerprint. When the app
* is running you can run this same command each time the emulator prompts you
* for a fingerprint, you can run the adb command and pass it the `finger_id`
* to simulate the fingerprint scan.
*/
export declare function mobileFingerprint(this: AndroidDriver, fingerprintId: string | number): Promise<void>;
/**
* @deprecated Use mobile: extension
*/
export declare function sendSMS(this: AndroidDriver, phoneNumber: string, message: string): Promise<void>;
/**
* Sends an SMS message to the emulator.
*
* @param phoneNumber - The phone number to send SMS to
* @param message - The message payload
*/
export declare function mobileSendSms(this: AndroidDriver, phoneNumber: string, message: string): Promise<void>;
/**
* @deprecated Use mobile: extension
*/
export declare function gsmCall(this: AndroidDriver, phoneNumber: string, action: GsmAction): Promise<void>;
/**
* Simulates a GSM call on the emulator.
*
* @param phoneNumber - The phone number to call to
* @param action - Action to take
*/
export declare function mobileGsmCall(this: AndroidDriver, phoneNumber: string, action: GsmAction): Promise<void>;
/**
* @deprecated Use mobile: extension
*/
export declare function gsmSignal(this: AndroidDriver, signalStrength: GsmSignalStrength): Promise<void>;
/**
* Sets the GSM signal strength on the emulator.
*
* @param strength - The signal strength value
*/
export declare function mobileGsmSignal(this: AndroidDriver, strength: GsmSignalStrength): Promise<void>;
/**
* @deprecated Use mobile: extension
*/
export declare function gsmVoice(this: AndroidDriver, state: GsmVoiceState): Promise<void>;
/**
* Sets the GSM voice state on the emulator.
*
* @param state - The voice state
*/
export declare function mobileGsmVoice(this: AndroidDriver, state: GsmVoiceState): Promise<void>;
/**
* @deprecated Use mobile: extension
*/
export declare function powerAC(this: AndroidDriver, state: PowerACState): Promise<void>;
/**
* Sets the power AC state on the emulator.
*
* @param state - The AC power state
*/
export declare function mobilePowerAc(this: AndroidDriver, state: PowerACState): Promise<void>;
/**
* @deprecated Use mobile: extension
*/
export declare function powerCapacity(this: AndroidDriver, batteryPercent: number): Promise<void>;
/**
* Sets the battery capacity on the emulator.
*
* @param percent - Percentage value in range `[0, 100]`
*/
export declare function mobilePowerCapacity(this: AndroidDriver, percent: number): Promise<void>;
/**
* @deprecated Use mobile: extension
*/
export declare function networkSpeed(this: AndroidDriver, networkSpeed: NetworkSpeed): Promise<void>;
/**
* Sets the network speed on the emulator.
*
* @param speed - The network speed value
*/
export declare function mobileNetworkSpeed(this: AndroidDriver, speed: NetworkSpeed): Promise<void>;
/**
* Sets a sensor value on the emulator.
*
* @param sensorType - Sensor type as declared in `adb.SENSORS`
* @param value - Value to set to the sensor
* @throws {errors.InvalidArgumentError} If sensorType or value is not provided
*/
export declare function sensorSet(this: AndroidDriver, sensorType: string, value: string | number): Promise<void>;
//# sourceMappingURL=emulator-actions.d.ts.map