Adds a handler for the given provider event type. The handlers are called in the order they have been added.
The provider event type to listen to
The handler to run on occurrence of the event type
Adds hooks that will run during flag evaluations on this receiver. Hooks are executed in the order they were registered. Adding additional hooks will not remove existing hooks. Hooks registered on the global API object run with all evaluations. Hooks registered on the client run with all evaluations on that client.
The receiver (this object)
Performs a flag evaluation that a returns an evaluation details object.
The flag key uniquely identifies a particular flag
The value returned if an error occurs
Optional
options: FlagEvaluationOptionsAdditional flag evaluation options
Flag evaluation details response
Performs a flag evaluation that returns a boolean.
The flag key uniquely identifies a particular flag
The value returned if an error occurs
Optional
options: FlagEvaluationOptionsAdditional flag evaluation options
Flag evaluation response
Gets the current handlers for the given provider event type.
The provider event type to get the current handlers for
The handlers currently attached to the given provider event type
Performs a flag evaluation that a returns an evaluation details object.
The flag key uniquely identifies a particular flag
The value returned if an error occurs
Optional
options: FlagEvaluationOptionsAdditional flag evaluation options
Flag evaluation details response
Optional
options: FlagEvaluationOptionsPerforms a flag evaluation that returns a number.
The flag key uniquely identifies a particular flag
The value returned if an error occurs
Optional
options: FlagEvaluationOptionsAdditional flag evaluation options
Flag evaluation response
Optional
options: FlagEvaluationOptionsPerforms a flag evaluation that a returns an evaluation details object.
The flag key uniquely identifies a particular flag
The value returned if an error occurs
Optional
options: FlagEvaluationOptionsAdditional flag evaluation options
Flag evaluation details response
Optional
options: FlagEvaluationOptionsPerforms a flag evaluation that returns an object.
The flag key uniquely identifies a particular flag
The value returned if an error occurs
Optional
options: FlagEvaluationOptionsAdditional flag evaluation options
Flag evaluation response
Optional
options: FlagEvaluationOptionsPerforms a flag evaluation that a returns an evaluation details object.
The flag key uniquely identifies a particular flag
The value returned if an error occurs
Optional
options: FlagEvaluationOptionsAdditional flag evaluation options
Flag evaluation details response
Optional
options: FlagEvaluationOptionsPerforms a flag evaluation that returns a string.
The flag key uniquely identifies a particular flag
The value returned if an error occurs
Optional
options: FlagEvaluationOptionsAdditional flag evaluation options
Flag evaluation response
Optional
options: FlagEvaluationOptionsRemoves a handler for the given provider event type.
The provider event type to remove the listener for
The handler to remove for the provider event type
Sets a logger on this receiver. This logger supersedes to the global logger and is passed to various components in the SDK. The logger configured on the global API object will be used for all evaluations, unless overridden in a particular client.
The logger to be used
The receiver (this object)
Track a user action or application state, usually representing a business objective or outcome.
an identifier for the event
Optional
trackingEventDetails: TrackingEventDetailsthe details of the tracking event
Returns the status of the associated provider.