Enum Class ApplicationState

java.lang.Object
java.lang.Enum<ApplicationState>
io.appium.java_client.appmanagement.ApplicationState
All Implemented Interfaces:
Serializable, Comparable<ApplicationState>, Constable

public enum ApplicationState extends Enum<ApplicationState>
  • Enum Constant Details

    • NOT_INSTALLED

      public static final ApplicationState NOT_INSTALLED
    • NOT_RUNNING

      public static final ApplicationState NOT_RUNNING
    • RUNNING_IN_BACKGROUND_SUSPENDED

      public static final ApplicationState RUNNING_IN_BACKGROUND_SUSPENDED
    • RUNNING_IN_BACKGROUND

      public static final ApplicationState RUNNING_IN_BACKGROUND
    • RUNNING_IN_FOREGROUND

      public static final ApplicationState RUNNING_IN_FOREGROUND
  • Method Details

    • values

      public static ApplicationState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ApplicationState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • ofCode

      public static ApplicationState ofCode(long code)
      Creates ApplicationState instance based on the code.
      Parameters:
      code - the code received from state querying endpoint.
      Returns:
      ApplicationState instance.