Enum Class ConnectionInformation.ConnectionMode

java.lang.Object
java.lang.Enum<ConnectionInformation.ConnectionMode>
com.launchdarkly.sdk.android.ConnectionInformation.ConnectionMode
All Implemented Interfaces:
Serializable, Comparable<ConnectionInformation.ConnectionMode>, Constable
Enclosing interface:
ConnectionInformation

public static enum ConnectionInformation.ConnectionMode extends Enum<ConnectionInformation.ConnectionMode>
Enumerated type defining the possible values of ConnectionInformation.getConnectionMode().
  • Enum Constant Details

    • STREAMING

      public static final ConnectionInformation.ConnectionMode STREAMING
      The SDK is either connected to the flag stream, or is actively attempting to acquire a connection.
    • POLLING

      public static final ConnectionInformation.ConnectionMode POLLING
      The SDK is in foreground polling mode because it was configured with streaming disabled.
    • BACKGROUND_POLLING

      public static final ConnectionInformation.ConnectionMode BACKGROUND_POLLING
      The SDK has detected the application is in the background and has transitioned to battery-saving background polling.
    • BACKGROUND_DISABLED

      public static final ConnectionInformation.ConnectionMode BACKGROUND_DISABLED
      The SDK was configured with background polling disabled. The SDK has detected the application is in the background and is not attempting to update the flag cache.
    • OFFLINE

      public static final ConnectionInformation.ConnectionMode OFFLINE
      The SDK has detected that the mobile device does not have an active network connection. It has ceased flag update attempts until the network status changes.
    • SET_OFFLINE

      public static final ConnectionInformation.ConnectionMode SET_OFFLINE
      The SDK has been explicitly set offline, either in the initial configuration, by LDClient.setOffline(), or as a result of failed authentication to LaunchDarkly. The SDK will stay offline unless LDClient.setOnline() is called.
    • SHUTDOWN

      public static final ConnectionInformation.ConnectionMode SHUTDOWN
      The shutdown state indicates the SDK has been permanently shutdown as a result of a call to close().
  • Method Details

    • values

      public static ConnectionInformation.ConnectionMode[] 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 ConnectionInformation.ConnectionMode 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