Determines the string variation of a feature flag for a context, along with information about how it was calculated.
The reason property of the result will also be included in analytics events, if you are capturing detailed event data for this flag.
reason
If the flag variation does not have a string value, defaultValue is returned. The reason will indicate an error of the type WRONG_KIND in this case.
WRONG_KIND
For more information, see the SDK reference guide.
The unique key of the feature flag.
The default value of the flag, to be used if the value is not available from LaunchDarkly.
The result (as an LDEvaluationDetailTyped).
Generated using TypeDoc
Determines the string variation of a feature flag for a context, along with information about how it was calculated.
The
reason
property of the result will also be included in analytics events, if you are capturing detailed event data for this flag.If the flag variation does not have a string value, defaultValue is returned. The reason will indicate an error of the type
WRONG_KIND
in this case.For more information, see the SDK reference guide.