Exemple #1
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     UnhookMap();
     if (_scaleGestureDetector != null)
     {
         _scaleGestureDetector.Dispose();
     }
 }
Exemple #2
0
        public void Release()
        {
            Preview.StopPreview();
            PreviewCallback.Dispose();
            Preview.AddCallbackBuffer(null);
            Preview.SetPreviewCallbackWithBuffer(null);
            pinchlistener.Dispose();
            scaleGestureDetector.Dispose();

            Preview.Release();
            Preview = null;
        }