Interface SupportsGpsEnabledOption<T extends BaseOptions<T>>
- All Superinterfaces:
CanSetCapability<T>,org.openqa.selenium.Capabilities,Serializable
- All Known Implementing Classes:
EspressoOptions,UiAutomator2Options
public interface SupportsGpsEnabledOption<T extends BaseOptions<T>>
extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the state of GPS service on emulator.default TEnables GPS service in the Emulator.default TsetGpsEnabled(boolean value) Sets whether to enable (true) or disable (false) GPS service in the Emulator.Methods inherited from interface io.appium.java_client.remote.options.CanSetCapability
amend, setCapabilityMethods inherited from interface org.openqa.selenium.Capabilities
asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
-
Field Details
-
GPS_ENABLED_OPTION
- See Also:
-
-
Method Details
-
gpsEnabled
Enables GPS service in the Emulator. Unset by default, which means to not change the current value.- Returns:
- self instance for chaining.
-
setGpsEnabled
Sets whether to enable (true) or disable (false) GPS service in the Emulator. Unset by default, which means to not change the current value.- Parameters:
value- Whether to enable or disable the GPS service.- Returns:
- self instance for chaining.
-
getGpsEnabled
Get the state of GPS service on emulator.- Returns:
- True or false.
-