onPause

fun onPause()

Inform the view that the activity has paused. The owner of this view must call this method when the activity is paused. Calling this method will pause the rendering thread. Calling this method before a renderer is set has no effect.