Example usage for com.facebook.react.views.scroll ScrollEventType END_DRAG

List of usage examples for com.facebook.react.views.scroll ScrollEventType END_DRAG

Introduction

In this page you can find the example usage for com.facebook.react.views.scroll ScrollEventType END_DRAG.

Prototype

ScrollEventType END_DRAG

To view the source code for com.facebook.react.views.scroll ScrollEventType END_DRAG.

Click Source Link

Usage

From source file:com.bottomsheetbehavior.ReactNestedScrollViewHelper.java

License:Open Source License

public static void emitScrollEndDragEvent(ViewGroup scrollView) {
    emitScrollEvent(scrollView, ScrollEventType.END_DRAG);
}

From source file:com.bottomsheetbehavior.ReactNestedScrollViewManager.java

License:Open Source License

public static Map createExportedCustomDirectEventTypeConstants() {
    return MapBuilder.builder()
            .put(ScrollEventType.SCROLL.getJSEventName(), MapBuilder.of("registrationName", "onScroll"))
            .put(ScrollEventType.BEGIN_DRAG.getJSEventName(),
                    MapBuilder.of("registrationName", "onScrollBeginDrag"))
            .put(ScrollEventType.END_DRAG.getJSEventName(),
                    MapBuilder.of("registrationName", "onScrollEndDrag"))
            .put(ScrollEventType.ANIMATION_END.getJSEventName(),
                    MapBuilder.of("registrationName", "onScrollAnimationEnd"))
            .put(ScrollEventType.MOMENTUM_BEGIN.getJSEventName(),
                    MapBuilder.of("registrationName", "onMomentumScrollBegin"))
            .put(ScrollEventType.MOMENTUM_END.getJSEventName(),
                    MapBuilder.of("registrationName", "onMomentumScrollEnd"))
            .build();/*from  w w w  . j  a  va 2  s. c o m*/
}

From source file:com.rnnestedscrollview.ReactNestedScrollViewManager.java

License:MIT License

public static Map<String, Object> createExportedCustomDirectEventTypeConstants() {
    return MapBuilder.<String, Object>builder()
            .put(ScrollEventType.getJSEventName(ScrollEventType.SCROLL),
                    MapBuilder.of("registrationName", "onScroll"))
            .put(ScrollEventType.getJSEventName(ScrollEventType.BEGIN_DRAG),
                    MapBuilder.of("registrationName", "onScrollBeginDrag"))
            .put(ScrollEventType.getJSEventName(ScrollEventType.END_DRAG),
                    MapBuilder.of("registrationName", "onScrollEndDrag"))
            .put(ScrollEventType.getJSEventName(ScrollEventType.MOMENTUM_BEGIN),
                    MapBuilder.of("registrationName", "onMomentumScrollBegin"))
            .put(ScrollEventType.getJSEventName(ScrollEventType.MOMENTUM_END),
                    MapBuilder.of("registrationName", "onMomentumScrollEnd"))
            .build();/*  w ww.j a  va  2s.  co  m*/
}

From source file:com.zulipmobile.AnchorScrollViewHelper.java

License:Open Source License

public static void emitScrollEndDragEvent(ViewGroup scrollView) {
    emitScrollEvent(scrollView, ScrollEventType.END_DRAG, null, true);
}