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