Package com.launchdarkly.sdk.android
Class LDConfig
java.lang.Object
com.launchdarkly.sdk.android.LDConfig
This class exposes advanced configuration options for
LDClient
. Instances of this class
must be constructed with LDConfig.Builder
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The default value forStreamingDataSourceBuilder.backgroundPollIntervalMillis(int)
andPollingDataSourceBuilder.backgroundPollIntervalMillis(int)
: one hour.static final int
The minimum value forStreamingDataSourceBuilder.backgroundPollIntervalMillis(int)
andPollingDataSourceBuilder.backgroundPollIntervalMillis(int)
: 15 minutes. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
-
Field Details
-
DEFAULT_BACKGROUND_POLL_INTERVAL_MILLIS
public static final int DEFAULT_BACKGROUND_POLL_INTERVAL_MILLISThe default value forStreamingDataSourceBuilder.backgroundPollIntervalMillis(int)
andPollingDataSourceBuilder.backgroundPollIntervalMillis(int)
: one hour.- See Also:
-
MIN_BACKGROUND_POLL_INTERVAL_MILLIS
public static final int MIN_BACKGROUND_POLL_INTERVAL_MILLISThe minimum value forStreamingDataSourceBuilder.backgroundPollIntervalMillis(int)
andPollingDataSourceBuilder.backgroundPollIntervalMillis(int)
: 15 minutes.- See Also:
-
-
Method Details
-
getMobileKey
- Returns:
- the mobile key
-
getMobileKeys
- Returns:
- a map of mobile keys keyed by environment name
-
isOffline
public boolean isOffline()- Returns:
- true if offline mode is enabled, false otherwise
-
isDisableBackgroundPolling
public boolean isDisableBackgroundPolling()- Returns:
- true if background polling is disabled, false otherwise
-
isEvaluationReasons
public boolean isEvaluationReasons()- Returns:
- true if evaluation reasons are turned on, false otherwise
-
isGenerateAnonymousKeys
public boolean isGenerateAnonymousKeys()- Returns:
- true if keys should be generated for anonymous contexts, false otherwise
-
isAutoEnvAttributes
public boolean isAutoEnvAttributes()- Returns:
- true if automatic environment attributes should be included in contexts, false otherwise
-