// 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); } } }
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); }
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); }
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); }
internal void RemoveListener(GestureProcessor gestureProcessor) { }
public void SetProcessor(GestureProcessor processor) { _processor = processor; }