- 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
-
- 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.
- 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
-
- 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
-
- 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
-
- 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
-
- getRuleIndex() - Method in class com.launchdarkly.sdk.EvaluationReason
-
- 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".
- 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
-
- 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
-
- 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
-
- 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
-
- 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.
- 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
-
- 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.
- 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
JsonElement
s.
- 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
.