AssetController
Defined in: asset.ts:35
Methods
Section titled “Methods”hide()
Section titled “hide()”hide():
Promise<void>
Defined in: asset.ts:59
Hides the asset overlay and records an assetEnd event. For image assets, also cancels any pending auto-hide timer.
Returns
Section titled “Returns”Promise<void>
show()
Section titled “show()”show():
Promise<void>
Defined in: asset.ts:54
Shows the asset overlay and records an assetStart event.
For image assets, show() blocks for the configured duration ms and
then auto-records the assetEnd event. Calling hide() before the timer
fires cancels the auto-hide.
Also directly awaitable: await assets.logo is equivalent to
await assets.logo.show().
Returns
Section titled “Returns”Promise<void>
Example
Section titled “Example”await assets.logo // show image for its configured durationawait page.goto('/page')await assets.clip.show() // start playing video overlayawait assets.clip.hide() // stop video overlay manuallythen()
Section titled “then()”then<
T>(onfulfilled?,onrejected?):PromiseLike<T>
Defined in: asset.ts:61
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”onfulfilled?
Section titled “onfulfilled?”((value) => T | PromiseLike<T>) | null
onrejected?
Section titled “onrejected?”((reason) => T | PromiseLike<T>) | null
Returns
Section titled “Returns”PromiseLike<T>