protected override void OnPause() { base.OnPause(); // Note that the order matters - GLSurfaceView is paused first so that it does not try // to query the session. If Session is paused before GLSurfaceView, GLSurfaceView may // still call mSession.update() and get a SessionPausedException. mSurfaceView.OnPause(); mSession.Pause(); }
protected override void OnPause() { base.OnPause(); // The following call pauses the rendering thread. // If your OpenGL application is memory intensive, // you should consider de-allocating objects that // consume significant memory here. mGLView.OnPause(); }
protected override void OnPause() { base.OnPause(); EngineApp._EnginePause_UpdateState(false, true); #if OPENGLES glSurfaceView.OnPause(); #endif }
protected override void OnPause() { Log.Debug(TAG, "onPause start."); base.OnPause(); if (mArSession != null) { mDisplayRotationManager.UnregisterDisplayListener(); mSurfaceView.OnPause(); mArSession.Pause(); } Log.Debug(TAG, "onPause end."); }
protected override void OnPause() { base.OnPause(); if (Scene != null) { Scene.Pause(); } view.OnPause(); Script.Reset(); Music.Instance.Pause(); Sample.Instance.Pause(); }
protected override void OnPause() { base.OnPause(); if (ContextCompat.CheckSelfPermission(this, Android.Manifest.Permission.Camera) == Android.Content.PM.Permission.Granted) { // Note that the order matters - GLSurfaceView is paused first so that it does not try // to query the session. If Session is paused before GLSurfaceView, GLSurfaceView may // still call mSession.update() and get a SessionPausedException. mDisplayRotationHelper.OnPause(); mSurfaceView.OnPause(); if (mSession != null) { mSession.Pause(); } } }
protected override void OnPause() { base.OnPause(); lock (_stateChanged) { if (this.IsFinishing) { _state = GLGameState.Finished; } else { _state = GLGameState.Paused; } //модификация кода } _wakeLock.Release(); _glView.OnPause(); //модификация кода }
protected override void OnPause() { Log.Debug(TAG, "OnPause Start."); base.OnPause(); if (isOpenCameraOutside) { if (mCamera != null) { mCamera.CloseCamera(); mCamera.StopCameraThread(); mCamera = null; } } if (mArSession != null) { mDisplayRotationManager.UnregisterDisplayListener(); glSurfaceView.OnPause(); mArSession.Pause(); Log.Debug(TAG, "Session paused!"); } Log.Debug(TAG, "OnPause end."); }
protected override void OnPause() { base.OnPause(); _GLSurfaceView.OnPause(); }
protected override void OnPause() { base.OnPause(); glView.OnPause(); }