예제 #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);
         }
     }
 }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #5
0
 internal void RemoveListener(GestureProcessor gestureProcessor)
 {
 }
예제 #6
0
 public void SetProcessor(GestureProcessor processor)
 {
     _processor = processor;
 }