Click or drag to resize

LdClientAllFlagsState Method

Returns an object that encapsulates the state of all feature flags for a given user, which can be passed to front-end code.

Namespace:  LaunchDarkly.Client
Assembly:  LaunchDarkly.ServerSdk (in LaunchDarkly.ServerSdk.dll) Version: 5.13.0
Syntax
public FeatureFlagsState AllFlagsState(
	User user,
	params FlagsStateOption[] options
)

Parameters

user
Type: LaunchDarkly.ClientUser
the end user requesting the feature flags
options
Type: LaunchDarkly.ClientFlagsStateOption
optional FlagsStateOption values affecting how the state is computed - for instance, to filter the set of flags to only include the client-side-enabled ones

Return Value

Type: FeatureFlagsState
a FeatureFlagsState object (will never be null; see Valid

Implements

ILdClientAllFlagsState(User, FlagsStateOption)
Remarks

The object returned by this method contains the flag values as well as other metadata that is used by the LaunchDarkly JavaScript client, so it can be used for bootstrapping.

This method will not send analytics events back to LaunchDarkly.

See Also