Ejemplo n.º 1
0
 // Must be called after Start method
 public void SetInputInterface(GestureProcessor processor)
 {
     if (_gestures != null)
     {
         for (int i = 0; i < _gestures.Length; i++)
         {
             _gestures[i].SetProcessor(processor);
         }
     }
 }
Ejemplo n.º 2
0
        bool _handleScrollEnd(ScrollNotification notification)
        {
            GestureProcessor topWrap    = this._headerKey.currentState as GestureProcessor;
            GestureProcessor bottomWrap = this._footerKey.currentState as GestureProcessor;

            if (this.widget.enablePullUp)
            {
                bottomWrap.onDragEnd(notification);
            }

            if (this.widget.enablePullDown)
            {
                topWrap.onDragEnd(notification);
            }

            return(false);
        }
Ejemplo n.º 3
0
        bool _handleScrollMoving(ScrollUpdateNotification notification)
        {
            if (this._measure(notification) != -1.0)
            {
                this.offsetLis.value = this._measure(notification);
            }

            GestureProcessor topWrap    = this._headerKey.currentState as GestureProcessor;
            GestureProcessor bottomWrap = this._footerKey.currentState as GestureProcessor;

            if (this.widget.enablePullUp)
            {
                bottomWrap.onDragMove(notification);
            }

            if (this.widget.enablePullDown)
            {
                topWrap.onDragMove(notification);
            }

            return(false);
        }
Ejemplo n.º 4
0
        bool _handleScrollStart(ScrollStartNotification notification)
        {
            // This is used to interrupt useless callback when the pull up load rolls back.
            if (notification.metrics.outOfRange())
            {
                return(false);
            }

            GestureProcessor topWrap    = this._headerKey.currentState as GestureProcessor;
            GestureProcessor bottomWrap = this._footerKey.currentState as GestureProcessor;

            if (this.widget.enablePullUp)
            {
                bottomWrap.onDragStart(notification);
            }

            if (this.widget.enablePullDown)
            {
                topWrap.onDragStart(notification);
            }

            return(false);
        }
Ejemplo n.º 5
0
 internal void RemoveListener(GestureProcessor gestureProcessor)
 {
 }
Ejemplo n.º 6
0
 public void SetProcessor(GestureProcessor processor)
 {
     _processor = processor;
 }