onResize
Creates a new resize callback that is invoked whenever the context is resized.
Return
a lambda that can be invoked to remove the callback
Creates a new resize callback that is invoked whenever the context is resized.
a lambda that can be invoked to remove the callback