@Override public @Nullable Map getExportedCustomDirectEventTypeConstants() { return MapBuilder.of( DrawerSlideEvent.EVENT_NAME, MapBuilder.of("registrationName", "onDrawerSlide"), DrawerOpenedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onDrawerOpen"), DrawerClosedEvent.EVENT_NAME, MapBuilder.of("registrationName", "onDrawerClose"), DrawerStateChangedEvent.EVENT_NAME, MapBuilder.of( "registrationName", "onDrawerStateChanged")); }
@Override public void onDrawerSlide(View view, float v) { mEventDispatcher.dispatchEvent( new DrawerSlideEvent(mDrawerLayout.getId(), v)); }
@Override public void onDrawerSlide(View view, float v) { mEventDispatcher.dispatchEvent( new DrawerSlideEvent(mDrawerLayout.getId(), SystemClock.nanoTime(), v)); }