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
    Modifier and Type
    Field
    Description
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default Optional<Boolean>
    Get the state of GPS service on emulator.
    default T
    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

    Methods inherited from interface org.openqa.selenium.Capabilities

    asMap, get, getBrowserName, getBrowserVersion, getCapability, getCapabilityNames, getPlatformName, is, merge, required
  • Field Details

  • Method Details

    • 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 Optional<Boolean> getGpsEnabled()
      Get the state of GPS service on emulator.
      Returns:
      True or false.