다음을 통해 공유


GLSurfaceView.OnPause Method

Definition

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

[Android.Runtime.Register("onPause", "()V", "GetOnPauseHandler")]
public virtual void OnPause ();
[<Android.Runtime.Register("onPause", "()V", "GetOnPauseHandler")>]
abstract member OnPause : unit -> unit
override this.OnPause : unit -> unit
Attributes

Remarks

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

This method should be called when it is no longer desirable for the GLSurfaceView to continue rendering, such as in response to android.app.Activity#onStop Activity.onStop.

Must not be called before a renderer has been set.

Java documentation for android.opengl.GLSurfaceView.onPause().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to