Creates an instance of UmbContextConsumer.
The host element.
The context identifier, an alias or a Context Token.
Optional
callback: UmbContextCallback<ResultType>The callback.
Protected
_onOptional
options: UmbContextConsumerAsPromiseOptionsTypePrevent the promise from timing out.
Protected
set
UmbContextConsumer
Description
The context consumer class, used to consume a context from a host element. Notice it is not recommended to use this class directly, but rather use the
consumeContext
method from aUmbElement
orUmbElementMixin
orUmbControllerBase
orUmbClassMixin
. Alternatively, you can use theUmbContextConsumerController
to consume a context from a host element. But this does require that you can implement one of the Class Mixins mentioned above.