Skip navigation links
A B C D E F G H I J K L M N O P R S T U V W 

A

add(LDValue) - Method in class com.launchdarkly.sdk.ArrayBuilder
Adds a new element to the builder.
add(boolean) - Method in class com.launchdarkly.sdk.ArrayBuilder
Adds a new element to the builder.
add(int) - Method in class com.launchdarkly.sdk.ArrayBuilder
Adds a new element to the builder.
add(long) - Method in class com.launchdarkly.sdk.ArrayBuilder
Adds a new element to the builder.
add(float) - Method in class com.launchdarkly.sdk.ArrayBuilder
Adds a new element to the builder.
add(double) - Method in class com.launchdarkly.sdk.ArrayBuilder
Adds a new element to the builder.
add(String) - Method in class com.launchdarkly.sdk.ArrayBuilder
Adds a new element to the builder.
alias(LDUser, LDUser) - Method in class com.launchdarkly.sdk.android.LDClient
Alias associates two users for analytics purposes.
allAttributesPrivate() - Method in class com.launchdarkly.sdk.android.LDConfig
 
allAttributesPrivate() - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Specifies that user attributes (other than the key) should be hidden from LaunchDarkly.
allFlags() - Method in class com.launchdarkly.sdk.android.LDClient
 
allFlags() - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns a map of all feature flags for the current user.
anonymous(boolean) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets whether this user is anonymous.
ANONYMOUS - Static variable in class com.launchdarkly.sdk.UserAttribute
Represents the anonymous attribute.
ArrayBuilder - Class in com.launchdarkly.sdk
A builder created by LDValue.buildArray().
ArrayBuilder() - Constructor for class com.launchdarkly.sdk.ArrayBuilder
 
arrayFrom(Iterable<T>) - Method in class com.launchdarkly.sdk.LDValue.Converter
Initializes an LDValue as an array, from a sequence of this type.
arrayOf(LDValue...) - Static method in class com.launchdarkly.sdk.LDValue
Creates an array value from the specified values.
arrayOf(T...) - Method in class com.launchdarkly.sdk.LDValue.Converter
Initializes an LDValue as an array, from a sequence of this type.
autoAliasingOptOut(boolean) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Enable this opt-out to disable sending an automatic alias event when LDClient.identify(LDUser) is called with a non-anonymous user when the current user is anonymous.
avatar(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the user's avatar.
AVATAR - Static variable in class com.launchdarkly.sdk.UserAttribute
Represents the avatar URL attribute.

B

backgroundPollingIntervalMillis(int) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Sets how often the client will poll for flag updates when your application is in the background.
Boolean - Static variable in class com.launchdarkly.sdk.LDValue.Convert
A LDValue.Converter for booleans.
booleanValue() - Method in class com.launchdarkly.sdk.LDValue
Returns this value as a boolean if it is explicitly a boolean.
boolVariation(String, boolean) - Method in class com.launchdarkly.sdk.android.LDClient
 
boolVariation(String, boolean) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the flag value for the current user.
boolVariationDetail(String, boolean) - Method in class com.launchdarkly.sdk.android.LDClient
 
boolVariationDetail(String, boolean) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the flag value for the current user, along with information about how it was calculated.
build() - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Returns the configured LDConfig object.
build() - Method in class com.launchdarkly.sdk.ArrayBuilder
Returns an array containing the builder's current elements.
build() - Method in class com.launchdarkly.sdk.LDUser.Builder
Builds the configured LDUser object.
build() - Method in class com.launchdarkly.sdk.ObjectBuilder
Returns an object containing the builder's current elements.
buildArray() - Static method in class com.launchdarkly.sdk.LDValue
Starts building an array value.
Builder() - Constructor for class com.launchdarkly.sdk.android.LDConfig.Builder
 
Builder(String) - Constructor for class com.launchdarkly.sdk.LDUser.Builder
Creates a builder with the specified key.
Builder(LDUser) - Constructor for class com.launchdarkly.sdk.LDUser.Builder
Creates a builder based on an existing user.
buildObject() - Static method in class com.launchdarkly.sdk.LDValue
Starts building an object value.

C

close() - Method in class com.launchdarkly.sdk.android.LDClient
Closes the client.
com.launchdarkly.sdk - package com.launchdarkly.sdk
Base namespace for LaunchDarkly Java-based SDKs, containing common types.
com.launchdarkly.sdk.android - package com.launchdarkly.sdk.android
Main package for the LaunchDarkly Android SDK, containing the client and configuration classes.
com.launchdarkly.sdk.json - package com.launchdarkly.sdk.json
Helper classes and methods for interoperability with JSON.
ConnectionInformation - Interface in com.launchdarkly.sdk.android
 
ConnectionInformation.ConnectionMode - Enum in com.launchdarkly.sdk.android
Enumerated type defining the possible values of ConnectionInformation.getConnectionMode().
connectionTimeoutMillis(int) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Sets the timeout when connecting to LaunchDarkly.
ConnectivityReceiver - Class in com.launchdarkly.sdk.android
Used internally by the SDK.
ConnectivityReceiver() - Constructor for class com.launchdarkly.sdk.android.ConnectivityReceiver
 
Converter() - Constructor for class com.launchdarkly.sdk.LDValue.Converter
 
country(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Set the country for a user.
COUNTRY - Static variable in class com.launchdarkly.sdk.UserAttribute
Represents the country attribute.
custom(String, String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Adds a String-valued custom attribute.
custom(String, int) - Method in class com.launchdarkly.sdk.LDUser.Builder
Adds an integer-valued custom attribute.
custom(String, double) - Method in class com.launchdarkly.sdk.LDUser.Builder
Adds a double-precision numeric custom attribute.
custom(String, boolean) - Method in class com.launchdarkly.sdk.LDUser.Builder
Add a boolean-valued custom attribute.
custom(String, LDValue) - Method in class com.launchdarkly.sdk.LDUser.Builder
Add a custom attribute whose value can be any JSON type, using LDValue.

D

deserialize(String, Class<T>) - Static method in class com.launchdarkly.sdk.json.JsonSerialization
Parses an object from its JSON representation.
diagnosticOptOut(boolean) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Set to true to opt out of sending diagnostics data.
diagnosticRecordingIntervalMillis(int) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Sets the interval at which periodic diagnostic data is sent.
disableBackgroundUpdating(boolean) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Sets whether feature flag updates should be disabled when your app is in the background.
Double - Static variable in class com.launchdarkly.sdk.LDValue.Convert
A LDValue.Converter for doubles.
doubleValue() - Method in class com.launchdarkly.sdk.LDValue
Returns this value as a double if it is numeric.
doubleVariation(String, double) - Method in class com.launchdarkly.sdk.android.LDClient
 
doubleVariation(String, double) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the flag value for the current user.
doubleVariationDetail(String, double) - Method in class com.launchdarkly.sdk.android.LDClient
 
doubleVariationDetail(String, double) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the flag value for the current user, along with information about how it was calculated.

E

email(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the user's e-mail address.
EMAIL - Static variable in class com.launchdarkly.sdk.UserAttribute
Represents the user key attribute.
equals(Object) - Method in class com.launchdarkly.sdk.EvaluationDetail
 
equals(Object) - Method in class com.launchdarkly.sdk.EvaluationReason
 
equals(Object) - Method in class com.launchdarkly.sdk.LDUser
 
equals(Object) - Method in class com.launchdarkly.sdk.LDValue
Returns true if the other object is an LDValue that is logically equal.
equals(Object) - Method in class com.launchdarkly.sdk.UserAttribute
 
error(EvaluationReason.ErrorKind, LDValue) - Static method in class com.launchdarkly.sdk.EvaluationDetail
Shortcut for creating an instance with an error result.
error(EvaluationReason.ErrorKind) - Static method in class com.launchdarkly.sdk.EvaluationReason
Returns an instance whose kind is EvaluationReason.Kind.ERROR.
EvaluationDetail<T> - Class in com.launchdarkly.sdk
An object returned by the SDK's "variation detail" methods such as boolVariationDetail, combining the result of a flag evaluation with an explanation of how it was calculated.
EvaluationReason - Class in com.launchdarkly.sdk
Describes the reason that a flag evaluation produced a particular value.
EvaluationReason.ErrorKind - Enum in com.launchdarkly.sdk
Enumerated type defining the possible values of EvaluationReason.getErrorKind().
EvaluationReason.Kind - Enum in com.launchdarkly.sdk
Enumerated type defining the possible values of EvaluationReason.getKind().
evaluationReasons(boolean) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
If enabled, LaunchDarkly will provide additional information about how flag values were calculated.
eventsCapacity(int) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Set the capacity of the event buffer.
eventsFlushIntervalMillis(int) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Sets the maximum amount of time to wait in between sending analytics events to LaunchDarkly.
eventsUri(Uri) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Set the events URI for sending analytics to LaunchDarkly.
exception(Exception) - Static method in class com.launchdarkly.sdk.EvaluationReason
Returns an instance whose kind is EvaluationReason.Kind.ERROR, with an exception instance.

F

fallthrough() - Static method in class com.launchdarkly.sdk.EvaluationReason
Returns an instance whose kind is EvaluationReason.Kind.FALLTHROUGH.
fallthrough(boolean) - Static method in class com.launchdarkly.sdk.EvaluationReason
Returns an instance whose kind is EvaluationReason.Kind.FALLTHROUGH and where the inExperiment parameter represents whether the evaluation was part of an experiment.
FeatureFlagChangeListener - Interface in com.launchdarkly.sdk.android
Callback interface used for listening to changes to a feature flag.
FIRST_NAME - Static variable in class com.launchdarkly.sdk.UserAttribute
Represents the first name attribute.
firstName(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the user's first name
Float - Static variable in class com.launchdarkly.sdk.LDValue.Convert
A LDValue.Converter for floats.
floatValue() - Method in class com.launchdarkly.sdk.LDValue
Returns this value as a float if it is numeric.
flush() - Method in class com.launchdarkly.sdk.android.LDClient
 
flush() - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Sends all pending events to LaunchDarkly.
forName(String) - Static method in class com.launchdarkly.sdk.UserAttribute
Returns a UserAttribute instance for the specified attribute name.
fromType(T) - Method in class com.launchdarkly.sdk.LDValue.Converter
Converts a value of the specified type to an LDValue.
fromValue(T, int, EvaluationReason) - Static method in class com.launchdarkly.sdk.EvaluationDetail
Factory method for an arbitrary value.

G

get() - Static method in class com.launchdarkly.sdk.android.LDClient
 
get(int) - Method in class com.launchdarkly.sdk.LDValue
Returns an array element by index.
get(String) - Method in class com.launchdarkly.sdk.LDValue
Returns an object property by name.
getAttribute(UserAttribute) - Method in class com.launchdarkly.sdk.LDUser
Gets the value of a user attribute, if present.
getAvatar() - Method in class com.launchdarkly.sdk.LDUser
Returns the value of the avatar property for the user, if set.
getBackgroundPollingIntervalMillis() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getConnectionInformation() - Method in class com.launchdarkly.sdk.android.LDClient
 
getConnectionInformation() - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Gets a ConnectionInformation object from the client representing the current state of the clients connection.
getConnectionMode() - Method in interface com.launchdarkly.sdk.android.ConnectionInformation
 
getConnectionTimeoutMillis() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getCountry() - Method in class com.launchdarkly.sdk.LDUser
Returns the value of the country property for the user, if set.
getCustomAttributes() - Method in class com.launchdarkly.sdk.LDUser
Returns an enumeration of all custom attribute names that were set for this user.
getEmail() - Method in class com.launchdarkly.sdk.LDUser
Returns the value of the email property for the user, if set.
getErrorKind() - Method in class com.launchdarkly.sdk.EvaluationReason
An enumeration value indicating the general category of error, if the kind is EvaluationReason.Kind.PREREQUISITE_FAILED.
getEventsCapacity() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getEventsFlushIntervalMillis() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getEventsUri() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getException() - Method in class com.launchdarkly.sdk.EvaluationReason
The exception that caused the error condition, if the kind is EvaluationReason.Kind.ERROR and the errorKind is EvaluationReason.ErrorKind.EXCEPTION.
getFailureType() - Method in exception com.launchdarkly.sdk.android.LDFailure
 
getFilteredEventGson() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getFirstName() - Method in class com.launchdarkly.sdk.LDUser
Returns the value of the first name property for the user, if set.
getForMobileKey(String) - Static method in class com.launchdarkly.sdk.android.LDClient
 
getHeaderTransform() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getIp() - Method in class com.launchdarkly.sdk.LDUser
Returns the value of the IP property for the user, if set.
getKey() - Method in class com.launchdarkly.sdk.LDUser
Returns the user's unique key.
getKind() - Method in class com.launchdarkly.sdk.EvaluationReason
Returns an enum indicating the general category of the reason.
getLastFailedConnection() - Method in interface com.launchdarkly.sdk.android.ConnectionInformation
 
getLastFailure() - Method in interface com.launchdarkly.sdk.android.ConnectionInformation
 
getLastName() - Method in class com.launchdarkly.sdk.LDUser
Returns the value of the last name property for the user, if set.
getLastSuccessfulConnection() - Method in interface com.launchdarkly.sdk.android.ConnectionInformation
 
getMobileKey() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getMobileKeys() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getName() - Method in class com.launchdarkly.sdk.LDUser
Returns the value of the full name property for the user, if set.
getName() - Method in class com.launchdarkly.sdk.UserAttribute
Returns the case-sensitive attribute name.
getPollingIntervalMillis() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getPollUri() - Method in class com.launchdarkly.sdk.android.LDConfig
Get the currently configured base URI for polling requests.
getPrerequisiteKey() - Method in class com.launchdarkly.sdk.EvaluationReason
The key of the prerequisite flag that did not return the desired variation, if the kind is EvaluationReason.Kind.PREREQUISITE_FAILED.
getPrivateAttributes() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getPrivateAttributes() - Method in class com.launchdarkly.sdk.LDUser
Returns an enumeration of all attributes that were marked private for this user.
getReason() - Method in class com.launchdarkly.sdk.EvaluationDetail
An object describing the main factor that influenced the flag evaluation value.
getResponseCode() - Method in exception com.launchdarkly.sdk.android.LDInvalidResponseCodeFailure
 
getRuleId() - Method in class com.launchdarkly.sdk.EvaluationReason
The unique identifier of the rule that was matched, if the kind is EvaluationReason.Kind.RULE_MATCH.
getRuleIndex() - Method in class com.launchdarkly.sdk.EvaluationReason
The index of the rule that was matched (0 for the first rule in the feature flag), if the kind is EvaluationReason.Kind.RULE_MATCH.
getSecondary() - Method in class com.launchdarkly.sdk.LDUser
Returns the value of the secondary key property for the user, if set.
getStreamUri() - Method in class com.launchdarkly.sdk.android.LDConfig
 
getType() - Method in class com.launchdarkly.sdk.LDValue
Gets the JSON type for this value.
getValue() - Method in class com.launchdarkly.sdk.EvaluationDetail
The result of the flag evaluation.
getVariationIndex() - Method in class com.launchdarkly.sdk.EvaluationDetail
The index of the returned value within the flag's list of variations, e.g.
getVersion() - Method in class com.launchdarkly.sdk.android.LDClient
 
getVersion() - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the version of the SDK, for instance "2.7.0".

H

hashCode() - Method in class com.launchdarkly.sdk.EvaluationDetail
 
hashCode() - Method in class com.launchdarkly.sdk.EvaluationReason
 
hashCode() - Method in class com.launchdarkly.sdk.LDUser
 
hashCode() - Method in class com.launchdarkly.sdk.LDValue
 
hashCode() - Method in class com.launchdarkly.sdk.UserAttribute
 
headerTransform(LDHeaderUpdater) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Provides a callback for dynamically modifying headers used on requests to the LaunchDarkly service.

I

identify(LDUser) - Method in class com.launchdarkly.sdk.android.LDClient
 
identify(LDUser) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Sets the current user, retrieves flags for that user, then sends an Identify Event to LaunchDarkly.
init(Application, LDConfig, LDUser) - Static method in class com.launchdarkly.sdk.android.LDClient
Initializes the singleton/primary instance.
init(Application, LDConfig, LDUser, int) - Static method in class com.launchdarkly.sdk.android.LDClient
Initializes the singleton instance and blocks for up to startWaitSeconds seconds until the client has been initialized.
inlineUsersInEvents(boolean) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
If enabled, events to the server will be created containing the entire User object.
inlineUsersInEvents() - Method in class com.launchdarkly.sdk.android.LDConfig
 
Integer - Static variable in class com.launchdarkly.sdk.LDValue.Convert
A LDValue.Converter for integers.
intValue() - Method in class com.launchdarkly.sdk.LDValue
Returns this value as an int if it is numeric.
intVariation(String, int) - Method in class com.launchdarkly.sdk.android.LDClient
 
intVariation(String, int) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the flag value for the current user.
intVariationDetail(String, int) - Method in class com.launchdarkly.sdk.android.LDClient
 
intVariationDetail(String, int) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the flag value for the current user, along with information about how it was calculated.
ip(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the IP for a user.
IP - Static variable in class com.launchdarkly.sdk.UserAttribute
Represents the IP address attribute.
isAnonymous() - Method in class com.launchdarkly.sdk.LDUser
Returns true if this user was marked anonymous.
isAttributePrivate(UserAttribute) - Method in class com.launchdarkly.sdk.LDUser
Tests whether an attribute has been marked private for this user.
isBuiltIn() - Method in class com.launchdarkly.sdk.UserAttribute
Returns true for a built-in attribute or false for a custom attribute.
isDefaultValue() - Method in class com.launchdarkly.sdk.EvaluationDetail
Returns true if the flag evaluation returned the default value, rather than one of the flag's variations.
isDisableBackgroundPolling() - Method in class com.launchdarkly.sdk.android.LDClient
 
isDisableBackgroundPolling() - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Checks whether LDConfig.Builder.disableBackgroundUpdating(boolean) was set to true in the configuration.
isDisableBackgroundPolling() - Method in class com.launchdarkly.sdk.android.LDConfig
 
isEvaluationReasons() - Method in class com.launchdarkly.sdk.android.LDConfig
 
isInExperiment() - Method in class com.launchdarkly.sdk.EvaluationReason
Whether the evaluation was part of an experiment.
isInitialized() - Method in class com.launchdarkly.sdk.android.LDClient
 
isInitialized() - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Checks whether the client is ready to return feature flag values.
isInt() - Method in class com.launchdarkly.sdk.LDValue
Tests whether this value is a number that is also an integer.
isNull() - Method in class com.launchdarkly.sdk.LDValue
Tests whether this value is a null.
isNumber() - Method in class com.launchdarkly.sdk.LDValue
Tests whether this value is a number (not a numeric string).
isOffline() - Method in class com.launchdarkly.sdk.android.LDClient
 
isOffline() - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Checks whether the client has been put into offline mode.
isOffline() - Method in class com.launchdarkly.sdk.android.LDConfig
 
isRetryable() - Method in exception com.launchdarkly.sdk.android.LDInvalidResponseCodeFailure
 
isStream() - Method in class com.launchdarkly.sdk.android.LDConfig
 
isString() - Method in class com.launchdarkly.sdk.LDValue
Tests whether this value is a string.
isUseReport() - Method in class com.launchdarkly.sdk.android.LDConfig
 

J

JsonSerializable - Interface in com.launchdarkly.sdk.json
Marker interface for SDK classes that have a custom JSON serialization.
JsonSerialization - Class in com.launchdarkly.sdk.json
Helper methods for JSON serialization of SDK classes.
jsonValueVariation(String, LDValue) - Method in class com.launchdarkly.sdk.android.LDClient
 
jsonValueVariation(String, LDValue) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the flag value for the current user.
jsonValueVariationDetail(String, LDValue) - Method in class com.launchdarkly.sdk.android.LDClient
 
jsonValueVariationDetail(String, LDValue) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the flag value for the current user, along with information about how it was calculated.

K

key(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Changes the user's key.
KEY - Static variable in class com.launchdarkly.sdk.UserAttribute
Represents the user key attribute.
keys() - Method in class com.launchdarkly.sdk.LDValue
Enumerates the property names in an object.

L

LAST_NAME - Static variable in class com.launchdarkly.sdk.UserAttribute
Represents the last name attribute.
lastName(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the user's last name.
LaunchDarklyException - Exception in com.launchdarkly.sdk.android
Exception class that can be thrown by LaunchDarkly client methods.
LaunchDarklyException(String) - Constructor for exception com.launchdarkly.sdk.android.LaunchDarklyException
 
LDAllFlagsListener - Interface in com.launchdarkly.sdk.android
Callback interface used for listening to changes to the flag store.
LDClient - Class in com.launchdarkly.sdk.android
Client for accessing LaunchDarkly's Feature Flag system.
LDClient(Application, LDConfig) - Constructor for class com.launchdarkly.sdk.android.LDClient
 
LDClient(Application, LDConfig, String) - Constructor for class com.launchdarkly.sdk.android.LDClient
 
LDClientInterface - Interface in com.launchdarkly.sdk.android
The interface for the LaunchDarkly SDK client.
LDConfig - Class in com.launchdarkly.sdk.android
This class exposes advanced configuration options for LDClient.
LDConfig.Builder - Class in com.launchdarkly.sdk.android
A builder that helps construct LDConfig objects.
LDFailure - Exception in com.launchdarkly.sdk.android
 
LDFailure(String, LDFailure.FailureType) - Constructor for exception com.launchdarkly.sdk.android.LDFailure
 
LDFailure(String, Throwable, LDFailure.FailureType) - Constructor for exception com.launchdarkly.sdk.android.LDFailure
 
LDFailure.FailureType - Enum in com.launchdarkly.sdk.android
Enumerated type defining the possible values of LDFailure.getFailureType().
LDGson - Class in com.launchdarkly.sdk.json
A helper class for interoperability with application code that uses Gson.
LDHeaderUpdater - Interface in com.launchdarkly.sdk.android
An interface to provide the SDK with a function used to modify HTTP headers before each request to the LaunchDarkly service.
LDInvalidResponseCodeFailure - Exception in com.launchdarkly.sdk.android
 
LDInvalidResponseCodeFailure(String, int, boolean) - Constructor for exception com.launchdarkly.sdk.android.LDInvalidResponseCodeFailure
 
LDInvalidResponseCodeFailure(String, Throwable, int, boolean) - Constructor for exception com.launchdarkly.sdk.android.LDInvalidResponseCodeFailure
 
LDJackson - Class in com.launchdarkly.sdk.json
A helper class for interoperability with application code that uses Jackson.
LDStatusListener - Interface in com.launchdarkly.sdk.android
 
LDUser - Class in com.launchdarkly.sdk
A collection of attributes that can affect flag evaluation, usually corresponding to a user of your application.
LDUser(LDUser.Builder) - Constructor for class com.launchdarkly.sdk.LDUser
 
LDUser(String) - Constructor for class com.launchdarkly.sdk.LDUser
Create a user with the given key
LDUser.Builder - Class in com.launchdarkly.sdk
A builder that helps construct LDUser objects.
LDValue - Class in com.launchdarkly.sdk
An immutable instance of any data type that is allowed in JSON.
LDValue() - Constructor for class com.launchdarkly.sdk.LDValue
 
LDValue.Convert - Class in com.launchdarkly.sdk
Predefined instances of LDValue.Converter for commonly used types.
LDValue.Converter<T> - Class in com.launchdarkly.sdk
Defines a conversion between LDValue and some other type.
LDValueType - Enum in com.launchdarkly.sdk
Describes the type of an LDValue.
Long - Static variable in class com.launchdarkly.sdk.LDValue.Convert
A LDValue.Converter for long integers.
longValue() - Method in class com.launchdarkly.sdk.LDValue
Returns this value as a long if it is numeric.

M

maxCachedUsers(int) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Sets the maximum number of users to cache the flag values for locally in the device's SharedPreferences.
mobileKey(String) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Sets the key for authenticating with LaunchDarkly.
module() - Static method in class com.launchdarkly.sdk.json.LDJackson
Returns a Jackson Module that defines the correct serialization and deserialization behavior for all LaunchDarkly SDK objects that implement JsonSerializable.

N

name(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the user's full name.
NAME - Static variable in class com.launchdarkly.sdk.UserAttribute
Represents the full name attribute.
NO_VARIATION - Static variable in class com.launchdarkly.sdk.EvaluationDetail
If EvaluationDetail.getVariationIndex() is equal to this constant, it means no variation was chosen (evaluation failed and returned a default value).
normalize(LDValue) - Static method in class com.launchdarkly.sdk.LDValue
Returns the same value if non-null, or LDValue.ofNull() if null.

O

ObjectBuilder - Class in com.launchdarkly.sdk
A builder created by LDValue.buildObject().
ObjectBuilder() - Constructor for class com.launchdarkly.sdk.ObjectBuilder
 
objectFrom(Map<String, T>) - Method in class com.launchdarkly.sdk.LDValue.Converter
Initializes an LDValue as an object, from a map containing this type.
of(boolean) - Static method in class com.launchdarkly.sdk.LDValue
Returns an instance for a boolean value.
of(int) - Static method in class com.launchdarkly.sdk.LDValue
Returns an instance for a numeric value.
of(long) - Static method in class com.launchdarkly.sdk.LDValue
Returns an instance for a numeric value.
of(float) - Static method in class com.launchdarkly.sdk.LDValue
Returns an instance for a numeric value.
of(double) - Static method in class com.launchdarkly.sdk.LDValue
Returns an instance for a numeric value.
of(String) - Static method in class com.launchdarkly.sdk.LDValue
Returns an instance for a string value (or a null).
off() - Static method in class com.launchdarkly.sdk.EvaluationReason
Returns an instance whose kind is EvaluationReason.Kind.OFF.
offline(boolean) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Disables all network calls from the LaunchDarkly client.
ofNull() - Static method in class com.launchdarkly.sdk.LDValue
Returns an instance for a null value.
onChange(List<String>) - Method in interface com.launchdarkly.sdk.android.LDAllFlagsListener
Called by the SDK whenever it receives an update for the stored flag values of the current user.
onConnectionModeChanged(ConnectionInformation) - Method in interface com.launchdarkly.sdk.android.LDStatusListener
 
onFeatureFlagChange(String) - Method in interface com.launchdarkly.sdk.android.FeatureFlagChangeListener
The SDK calls this method when a feature flag value has changed for the current user.
onInternalFailure(LDFailure) - Method in interface com.launchdarkly.sdk.android.LDStatusListener
 
onReceive(Context, Intent) - Method in class com.launchdarkly.sdk.android.ConnectivityReceiver
 
onReceive(Context, Intent) - Method in class com.launchdarkly.sdk.android.PollingUpdater
 

P

parse(String) - Static method in class com.launchdarkly.sdk.LDValue
Parses an LDValue from a JSON representation.
pollingIntervalMillis(int) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Sets the interval in between feature flag updates, when streaming mode is disabled.
PollingUpdater - Class in com.launchdarkly.sdk.android
Used internally by the SDK.
PollingUpdater() - Constructor for class com.launchdarkly.sdk.android.PollingUpdater
 
pollUri(Uri) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Set the base URI for polling requests to LaunchDarkly.
prerequisiteFailed(String) - Static method in class com.launchdarkly.sdk.EvaluationReason
Returns an instance whose kind is EvaluationReason.Kind.PREREQUISITE_FAILED.
privateAttributes(UserAttribute...) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Marks a set of attributes private.
privateAvatar(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the user's avatar, and ensures that the avatar attribute will not be sent back to LaunchDarkly.
privateCountry(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Set the country for a user, and ensures that the country attribute will not be sent back to LaunchDarkly.
privateCustom(String, String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Add a String-valued custom attribute that will not be sent back to LaunchDarkly.
privateCustom(String, int) - Method in class com.launchdarkly.sdk.LDUser.Builder
Add an int-valued custom attribute that will not be sent back to LaunchDarkly.
privateCustom(String, double) - Method in class com.launchdarkly.sdk.LDUser.Builder
Add a double-precision numeric custom attribute that will not be sent back to LaunchDarkly.
privateCustom(String, boolean) - Method in class com.launchdarkly.sdk.LDUser.Builder
Add a boolean-valued custom attribute that will not be sent back to LaunchDarkly.
privateCustom(String, LDValue) - Method in class com.launchdarkly.sdk.LDUser.Builder
Add a custom attribute of any JSON type, that will not be sent back to LaunchDarkly.
privateEmail(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the user's e-mail address, and ensures that the e-mail address attribute will not be sent back to LaunchDarkly.
privateFirstName(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the user's first name, and ensures that the first name attribute will not be sent back to LaunchDarkly.
privateIp(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the IP for a user, and ensures that the IP attribute is not sent back to LaunchDarkly.
privateLastName(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the user's last name, and ensures that the last name attribute will not be sent back to LaunchDarkly.
privateName(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the user's full name, and ensures that the name attribute will not be sent back to LaunchDarkly.
privateSecondary(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the secondary key for a user, and ensures that the secondary key attribute is not sent back to LaunchDarkly.
put(String, LDValue) - Method in class com.launchdarkly.sdk.ObjectBuilder
Sets a key-value pair in the builder, overwriting any previous value for that key.
put(String, boolean) - Method in class com.launchdarkly.sdk.ObjectBuilder
Sets a key-value pair in the builder, overwriting any previous value for that key.
put(String, int) - Method in class com.launchdarkly.sdk.ObjectBuilder
Sets a key-value pair in the builder, overwriting any previous value for that key.
put(String, long) - Method in class com.launchdarkly.sdk.ObjectBuilder
Sets a key-value pair in the builder, overwriting any previous value for that key.
put(String, float) - Method in class com.launchdarkly.sdk.ObjectBuilder
Sets a key-value pair in the builder, overwriting any previous value for that key.
put(String, double) - Method in class com.launchdarkly.sdk.ObjectBuilder
Sets a key-value pair in the builder, overwriting any previous value for that key.
put(String, String) - Method in class com.launchdarkly.sdk.ObjectBuilder
Sets a key-value pair in the builder, overwriting any previous value for that key.

R

registerAllFlagsListener(LDAllFlagsListener) - Method in class com.launchdarkly.sdk.android.LDClient
 
registerAllFlagsListener(LDAllFlagsListener) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Registers a LDAllFlagsListener to be called when a flag update is processed by the SDK.
registerFeatureFlagListener(String, FeatureFlagChangeListener) - Method in class com.launchdarkly.sdk.android.LDClient
 
registerFeatureFlagListener(String, FeatureFlagChangeListener) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Registers a FeatureFlagChangeListener to be called when the flagKey changes from its current value.
registerStatusListener(LDStatusListener) - Method in class com.launchdarkly.sdk.android.LDClient
 
registerStatusListener(LDStatusListener) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Registers a LDStatusListener to be called on connection status updates.
ruleMatch(int, String) - Static method in class com.launchdarkly.sdk.EvaluationReason
Returns an instance whose kind is EvaluationReason.Kind.RULE_MATCH.
ruleMatch(int, String, boolean) - Static method in class com.launchdarkly.sdk.EvaluationReason
Returns an instance whose kind is EvaluationReason.Kind.RULE_MATCH and where the inExperiment parameter represents whether the evaluation was part of an experiment.

S

secondary(String) - Method in class com.launchdarkly.sdk.LDUser.Builder
Sets the secondary key for a user.
SECONDARY_KEY - Static variable in class com.launchdarkly.sdk.UserAttribute
Represents the secondary key attribute.
secondaryMobileKeys(Map<String, String>) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Sets the secondary keys for authenticating to additional LaunchDarkly environments.
SerializationException - Exception in com.launchdarkly.sdk.json
General exception class for all errors in serializing or deserializing JSON.
SerializationException(Throwable) - Constructor for exception com.launchdarkly.sdk.json.SerializationException
Creates an instance.
serialize(T) - Static method in class com.launchdarkly.sdk.json.JsonSerialization
Converts an object to its JSON representation.
setOffline() - Method in class com.launchdarkly.sdk.android.LDClient
 
setOffline() - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Shuts down any network connections maintained by the client and puts the client in offline mode, preventing the client from opening new network connections until setOnline() is called.
setOnline() - Method in class com.launchdarkly.sdk.android.LDClient
 
setOnline() - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Restores network connectivity for the client, if the client was previously in offline mode.
size() - Method in class com.launchdarkly.sdk.LDValue
Returns the number of elements in an array or object.
stream(boolean) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Enables or disables real-time streaming flag updates.
streamUri(Uri) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Set the stream URI for connecting to the flag update stream.
String - Static variable in class com.launchdarkly.sdk.LDValue.Convert
A LDValue.Converter for strings.
stringValue() - Method in class com.launchdarkly.sdk.LDValue
Returns this value as a String if it is a string.
stringVariation(String, String) - Method in class com.launchdarkly.sdk.android.LDClient
 
stringVariation(String, String) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the flag value for the current user.
stringVariationDetail(String, String) - Method in class com.launchdarkly.sdk.android.LDClient
 
stringVariationDetail(String, String) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Returns the flag value for the current user, along with information about how it was calculated.

T

targetMatch() - Static method in class com.launchdarkly.sdk.EvaluationReason
Returns an instance whose kind is EvaluationReason.Kind.TARGET_MATCH.
toJsonString() - Method in class com.launchdarkly.sdk.LDValue
Converts this value to its JSON serialization.
toString() - Method in class com.launchdarkly.sdk.EvaluationDetail
Returns a simple string representation of this instance.
toString() - Method in class com.launchdarkly.sdk.EvaluationReason
Returns a simple string representation of the reason.
toString() - Method in class com.launchdarkly.sdk.LDUser
 
toString() - Method in class com.launchdarkly.sdk.LDValue
Returns a string representation of this value.
toString() - Method in class com.launchdarkly.sdk.UserAttribute
 
toType(LDValue) - Method in class com.launchdarkly.sdk.LDValue.Converter
Converts an LDValue to a value of the specified type.
track(String) - Method in class com.launchdarkly.sdk.android.LDClient
 
track(String) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Tracks that a user performed an event.
trackData(String, LDValue) - Method in class com.launchdarkly.sdk.android.LDClient
 
trackData(String, LDValue) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Tracks that a user performed an event, and provides additional custom data.
trackMetric(String, LDValue, double) - Method in class com.launchdarkly.sdk.android.LDClient
 
trackMetric(String, LDValue, double) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Tracks that a user performed an event, and provides an additional numeric value for custom metrics.
typeAdapters() - Static method in class com.launchdarkly.sdk.json.LDGson
Returns a Gson TypeAdapterFactory that defines the correct serialization and deserialization behavior for all LaunchDarkly SDK objects that implement JsonSerializable.

U

unregisterAllFlagsListener(LDAllFlagsListener) - Method in class com.launchdarkly.sdk.android.LDClient
 
unregisterAllFlagsListener(LDAllFlagsListener) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Unregisters a LDAllFlagsListener so it will no longer be called on flag updates.
unregisterFeatureFlagListener(String, FeatureFlagChangeListener) - Method in class com.launchdarkly.sdk.android.LDClient
 
unregisterFeatureFlagListener(String, FeatureFlagChangeListener) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Unregisters a FeatureFlagChangeListener for the flagKey.
unregisterStatusListener(LDStatusListener) - Method in class com.launchdarkly.sdk.android.LDClient
 
unregisterStatusListener(LDStatusListener) - Method in interface com.launchdarkly.sdk.android.LDClientInterface
Unregisters a LDStatusListener so it will no longer be called on connection status updates.
updateHeaders(Map<String, String>) - Method in interface com.launchdarkly.sdk.android.LDHeaderUpdater
An application provided method for dynamic configuration of HTTP headers.
UserAttribute - Class in com.launchdarkly.sdk
Represents a built-in or custom attribute name supported by LDUser.
useReport(boolean) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
Sets the flag for choosing the REPORT api call.

V

valueMapToJsonElementMap(Map<T, LDValue>) - Static method in class com.launchdarkly.sdk.json.LDGson
Convenience method for converting a map of LDValue values to a map of Gson JsonElements.
valueOf(String) - Static method in enum com.launchdarkly.sdk.android.ConnectionInformation.ConnectionMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.launchdarkly.sdk.android.LDFailure.FailureType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.launchdarkly.sdk.EvaluationReason.ErrorKind
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.launchdarkly.sdk.EvaluationReason.Kind
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.launchdarkly.sdk.LDValueType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.launchdarkly.sdk.android.ConnectionInformation.ConnectionMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.launchdarkly.sdk.android.LDFailure.FailureType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.launchdarkly.sdk.EvaluationReason.ErrorKind
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.launchdarkly.sdk.EvaluationReason.Kind
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class com.launchdarkly.sdk.LDValue
Enumerates the values in an array or object.
values() - Static method in enum com.launchdarkly.sdk.LDValueType
Returns an array containing the constants of this enum type, in the order they are declared.
valuesAs(LDValue.Converter<T>) - Method in class com.launchdarkly.sdk.LDValue
Enumerates the values in an array or object, converting them to a specific type.
valueToJsonElement(LDValue) - Static method in class com.launchdarkly.sdk.json.LDGson
Returns a Gson JsonElement that is equivalent to the specified LDValue.

W

wrapperName(String) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
For use by wrapper libraries to set an identifying name for the wrapper being used.
wrapperVersion(String) - Method in class com.launchdarkly.sdk.android.LDConfig.Builder
For use by wrapper libraries to report the version of the library in use.
A B C D E F G H I J K L M N O P R S T U V W 
Skip navigation links