Skip to content

textmode.js / plugins / TextmodePluginContext / registerPostDrawHook

Method: registerPostDrawHook()

ts
registerPostDrawHook(callback): () => void;

Register a callback to be invoked after each draw cycle. Happens outside of the draw framebuffer being bound after the final result is drawn to the screen.

Parameters

ParameterType
callbackTextmodePluginHook

Returns

A function to unregister the hook.

() => void

Example