onPause

open fun onPause()

Pause the rendering thread, optionally tearing down the EGL context depending upon the value of setPreserveEGLContextOnPause.

Must not be called before a renderer has been set.