Package com.launchdarkly.sdk.android
Main package for the LaunchDarkly Android SDK, containing the client and configuration classes.
You will most often use LDClient
(the SDK client) and
LDConfig
(configuration options for the client).
Other commonly used types such as LDContext
are in the com.launchdarkly.sdk
package, since those are not Android-specific and are shared with the LaunchDarkly Java server-side SDK.
-
Interface Summary Interface Description ConnectionInformation FeatureFlagChangeListener Callback interface used for listening to changes to a feature flag.IContextModifier Modifies contexts when invoked.LDAllFlagsListener Callback interface used for listening to changes to the flag store.LDClientInterface The interface for the LaunchDarkly SDK client.LDHeaderUpdater An interface to provide the SDK with a function used to modify HTTP headers before each request to the LaunchDarkly service.LDStatusListener -
Class Summary Class Description AutoEnvContextModifier AnIContextModifier
that will add a few context kinds with environmental information that is useful out of the box.BuildConfig Components Provides configurable factories for the standard implementations of LaunchDarkly component interfaces.DataModel Contains information about the internal data model for feature flag state.DataModel.Flag Represents the state of a feature flag evaluation received from LaunchDarkly.LDAndroidLogging Allows LaunchDarkly log output to be sent directly to the native Android Log API.LDClient Client for accessing LaunchDarkly's Feature Flag system.LDConfig This class exposes advanced configuration options forLDClient
.LDConfig.Builder LDPackageConsts LDTimberLogging Allows LaunchDarkly log output to be forwarded to Timber.LDTimberLogging.Adapter A Timber implementation of theLDLogAdapter
interface.LDUtil NoOpContextModifier Context modifier that does nothing to the context. -
Enum Summary Enum Description ConnectionInformation.ConnectionMode Enumerated type defining the possible values ofConnectionInformation.getConnectionMode()
.LDConfig.Builder.AutoEnvAttributes Enable / disable options for Auto Environment Attributes functionality.LDFailure.FailureType Enumerated type defining the possible values ofLDFailure.getFailureType()
. -
Exception Summary Exception Description BuildConfig LaunchDarklyException Exception class that can be thrown by LaunchDarkly client methods.LDFailure LDInvalidResponseCodeFailure