Context value type.
Context value asset type.
Context type.
Readonly
entryTarget context entry.
Optional
Readonly
supplyAsset supply.
Removes the asset once cut off.
Returned from provide when specified. New one created when omitted.
Optional
buildBuilds value asset provider. The provider would then place value assets to the target
context entry.
In contrast to placeAsset, this method is called at most once per context. If provider will be called each time value assets requested.
This method also supports updatable assets. For that, an update
function is passed as second parameter. Call it
to inform the interested parties on value asset update. The updated asset has to be provided by provider returned
earlier.
Context entry definition target.
A function to call when asset updated.
Value assets provider accepting assets collector to place assets to as its only parameter, or falsy value if there are no value assets.
Optional
placeEvaluates value asset or multiple assets and places them to target
context entry.
Passes each evaluated asset to the given collector
, until the latter returns false
or there are no more
assets to place.
This method is called each time value assets requested.
Optional
setupSets up asset.
This method is called immediately when asset provided.
It can be used e.g. to provide additional assets. Additional assets will be revoked when the asset itself revoked.
Context entry definition target.
Generated using TypeDoc
Base interface of context entry asset implementations.