Пример #1
0
 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.");
 }
Пример #2
0
        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.");
        }