Interface SupportsGpsEnabledOption<T extends BaseOptions<T>>
-
- All Superinterfaces:
CanSetCapability<T>
,org.openqa.selenium.Capabilities
,java.io.Serializable
- All Known Implementing Classes:
EspressoOptions
,UiAutomator2Options
public interface SupportsGpsEnabledOption<T extends BaseOptions<T>> extends org.openqa.selenium.Capabilities, CanSetCapability<T>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GPS_ENABLED_OPTION
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.util.Optional<java.lang.Boolean>
getGpsEnabled()
Get the state of GPS service on emulator.default T
gpsEnabled()
Enables GPS service in the Emulator.default T
setGpsEnabled(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, setCapability
-
-
-
-
Field Detail
-
GPS_ENABLED_OPTION
static final java.lang.String GPS_ENABLED_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
gpsEnabled
default T gpsEnabled()
Enables GPS service in the Emulator. Unset by default, which means to not change the current value.- Returns:
- self instance for chaining.
-
setGpsEnabled
default T setGpsEnabled(boolean value)
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
default java.util.Optional<java.lang.Boolean> getGpsEnabled()
Get the state of GPS service on emulator.- Returns:
- True or false.
-
-