AbstractProtected Abstract Readonly_apiProtected_clientProtected_contextProtected Abstract_defaultProtected_domainProtected Abstract Readonly_domainProtected_hooksProtected_loggerProtected_runsProtected Abstract Readonly_statusProvider Metadata
Protected Abstract_createAdds a handler for the given provider event type. The handlers are called in the order they have been added. API (global) events run for all providers.
The provider event type to listen to
The handler to run on occurrence of the event type
Optionaloptions: EventOptionsOptional options such as signal for aborting
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.
Rest...hooks: H[]A list of hooks that should always run
The receiver (this object)
ProtectedbuildOptionaldomain: stringProtectedclearProtectedgetGets 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
ProtectedgetGet metadata about a registered provider using the client name. An unbound or empty client name will return metadata from the default provider.
Optionaldomain: stringAn identifier which logically binds clients with providers
Provider Metadata
Removes 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
ProtectedsetSets 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)
AbstractsetOptionalclientOrProvider: string | POptionalproviderContextOrUndefined: EvaluationContext | POptionalcontextOrUndefined: EvaluationContextAbstractsetOptionalclientOrProvider: string | POptionalproviderContextOrUndefined: EvaluationContext | POptionalcontextOrUndefined: EvaluationContext
Get metadata about the default provider.