Set the callback function when rendering is about to happen.
Signature:
setUpdateCallback(cbk: () => void): void;
Returns:
void