Creates an instance of UmbContextConsumer.
The host element.
The context identifier, an alias or a Context Token.
Optionalcallback: UmbContextCallback<ResultType>The callback.
Protected_Optionaloptions: UmbContextConsumerAsPromiseOptionsTypePrevent the promise from timing out.
Protectedset
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
consumeContextmethod from aUmbElementorUmbElementMixinorUmbControllerBaseorUmbClassMixin. Alternatively, you can use theUmbContextConsumerControllerto consume a context from a host element. But this does require that you can implement one of the Class Mixins mentioned above.