Package com.launchdarkly.sdk.android
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()
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe SDK was configured with background polling disabled.The SDK has detected the application is in the background and has transitioned to battery-saving background polling.The SDK has detected that the mobile device does not have an active network connection.The SDK is in foreground polling mode because it was configured with streaming disabled.The SDK has been explicitly set offline, either in the initial configuration, byLDClient.setOffline()
, or as a result of failed authentication to LaunchDarkly.The shutdown state indicates the SDK has been permanently shutdown as a result of a call to close().The SDK is either connected to the flag stream, or is actively attempting to acquire a connection. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ConnectionInformation.ConnectionMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STREAMING
The SDK is either connected to the flag stream, or is actively attempting to acquire a connection. -
POLLING
The SDK is in foreground polling mode because it was configured with streaming disabled. -
BACKGROUND_POLLING
The SDK has detected the application is in the background and has transitioned to battery-saving background polling. -
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
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
The SDK has been explicitly set offline, either in the initial configuration, byLDClient.setOffline()
, or as a result of failed authentication to LaunchDarkly. The SDK will stay offline unlessLDClient.setOnline()
is called. -
SHUTDOWN
The shutdown state indicates the SDK has been permanently shutdown as a result of a call to close().
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-