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
| Parameter | Type |
|---|---|
callback | TextmodePluginHook |
Returns
A function to unregister the hook.
() => void