internal void ClearGestureRecognizers() { nativeDetector?.Dispose(); nativeDetector = null; nativeListener?.Dispose(); nativeListener = null; RemoveTouchHandler(); }
protected override void Dispose(bool disposing) { if (disposing) { _nativeDetector?.Dispose(); _nativeDetector = null; _nativeListener?.Dispose(); _nativeListener = null; _nativeGestureHandler = null; } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (!_disposed && disposing) { _disposed = true; _nativeDetector?.Dispose(); _nativeDetector = null; _nativeListener?.Dispose(); _nativeListener = null; //_nativeGestureHandler?.Dispose(); _nativeGestureHandler = null; P42.Utils.DebugExtensions.RemoveFromCensus(this); } base.Dispose(disposing); }