示例#1
0
 protected override void OnDestroy()
 {
     if (launched)
     {
         UrhoSurface.OnDestroy();
     }
     base.OnDestroy();
 }
        protected override void OnDestroy()
        {
            UrhoSurface.OnDestroy();

            // TODO: We need to start and stop background thread on Resume and on Pause.
            //       But now we cannot, because we also need to open a new camera, etc when we do that...
            camera.CloseCamera();
            camera.StopBackgroundThread();

            // TODO: Also, we need to close camera when not using the app anymore!
            base.OnDestroy();
        }
示例#3
0
 protected override void OnDestroy()
 {
     UrhoSurface.OnDestroy();
     base.OnDestroy();
 }
 public override void OnBackPressed()
 {
     UrhoSurface.OnDestroy();
     Finish();
 }
示例#5
0
 //خرسه
 protected override void OnDisappearing()
 {
     base.OnDisappearing();
     OrientationSensor.Stop();
     UrhoSurface.OnDestroy();
 }
示例#6
0
 protected override void OnDestroy()
 {
     UrhoSurface.OnDestroy();
     mSensorManager.UnregisterListener(this);
     base.OnDestroy();
 }
示例#7
0
 protected override void OnDisappearing()
 {
     Debug.WriteLine("UrhoPage.OnDisappearing");
     UrhoSurface.OnDestroy();
     base.OnDisappearing();
 }
示例#8
0
 protected override void OnDisappearing()
 {
     _characteristicRcv?.StopUpdatesAsync();
     UrhoSurface.OnDestroy();
     base.OnDisappearing();
 }