onResize

open fun onResize(action: (width: Int, height: Int) -> Unit): RemoveContextCallback

Creates a new resize callback that is invoked whenever the context is resized.

Return

a lambda that can be invoked to remove the callback