internal void ClearGestureRecognizers()
 {
     nativeDetector?.Dispose();
     nativeDetector = null;
     nativeListener?.Dispose();
     nativeListener = null;
     RemoveTouchHandler();
 }
Ejemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _nativeDetector?.Dispose();
         _nativeDetector = null;
         _nativeListener?.Dispose();
         _nativeListener       = null;
         _nativeGestureHandler = null;
     }
     base.Dispose(disposing);
 }
Ejemplo n.º 3
0
        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);
        }