Package io.appium.java_client.android
Interface SupportsSpecialEmulatorCommands
- All Superinterfaces:
CanRememberExtensionPresence,ExecutesMethod
- All Known Implementing Classes:
AndroidDriver,FlutterAndroidDriver
public interface SupportsSpecialEmulatorCommands
extends ExecutesMethod, CanRememberExtensionPresence
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidmakeGsmCall(String phoneNumber, GsmCallActions gsmCallAction) Emulate GSM call event on the connected emulator.default voidEmulate send SMS event on the connected emulator.default voidsetGsmSignalStrength(GsmSignalStrength gsmSignalStrength) Emulate GSM signal strength change event on the connected emulator.default voidsetGsmVoice(GsmVoiceState gsmVoiceState) Emulate GSM voice event on the connected emulator.default voidsetNetworkSpeed(NetworkSpeed networkSpeed) Emulate network speed change event on the connected emulator.default voidsetPowerAC(PowerACState powerACState) Emulate power state change on the connected emulator.default voidsetPowerCapacity(int percent) Emulate power capacity change on the connected emulator.Methods inherited from interface io.appium.java_client.CanRememberExtensionPresence
assertExtensionExists, markExtensionAbsenceMethods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
Method Details
-
sendSMS
Emulate send SMS event on the connected emulator.- Parameters:
phoneNumber- The phone number of message sender.message- The message content.
-
makeGsmCall
Emulate GSM call event on the connected emulator.- Parameters:
phoneNumber- The phone number of the caller.gsmCallAction- One of availableGsmCallActionsvalues.
-
setGsmSignalStrength
Emulate GSM signal strength change event on the connected emulator.- Parameters:
gsmSignalStrength- One of availableGsmSignalStrengthvalues.
-
setGsmVoice
Emulate GSM voice event on the connected emulator.- Parameters:
gsmVoiceState- One of availableGsmVoiceStatevalues.
-
setNetworkSpeed
Emulate network speed change event on the connected emulator.- Parameters:
networkSpeed- One of availableNetworkSpeedvalues.
-
setPowerCapacity
default void setPowerCapacity(int percent) Emulate power capacity change on the connected emulator.- Parameters:
percent- Percentage value in range [0, 100].
-
setPowerAC
Emulate power state change on the connected emulator.- Parameters:
powerACState- One of availablePowerACStatevalues.
-