Skip to main content
Version: 2.x

Classes

Class

Description

ContextEvent

An event fired by a context requester to signal it desires a named context.

A provider should inspect the context property of the event to determine if it has a value that can satisfy the request, calling the callback with the requested value if so.

If the requested context event contains a truthy multiple value, then a provider can call the callback multiple times if the value is changed, if this is the case the provider should pass a dispose method to the callback which requesters can invoke to indicate they no longer wish to receive these updates.

Variables

Variable

Description

Context

Enables using: W3C Community Context protocol.

Type Aliases

Type Alias

Description

Context

A Context object defines an optional initial value for a Context, as well as a name identifier for debugging purposes.

ContextCallback

A callback which is provided by a context requester and is called with the value satisfying the request. This callback can be called multiple times by context providers as the requested value is changed.

ContextDecorator

A constant key that can be used to represent a Context dependency. The key can be used for context or DI but also doubles as a decorator for resolving the associated dependency.

ContextType

A helper type which can extract a Context value type from a Context type

FASTContext

A Context object defines an optional initial value for a Context, as well as a name identifier for debugging purposes. The FASTContext can also be used as a decorator to declare context dependencies or as a key for DI.

FASTContextRequestStrategy

A strategy that controls how all Context.request API calls are handled.

UnknownContext

An unknown context type.