@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 onDrawerClosed(View view) { mEventDispatcher.dispatchEvent( new DrawerClosedEvent(mDrawerLayout.getId())); }
@Override public void onDrawerClosed(View view) { mEventDispatcher.dispatchEvent( new DrawerClosedEvent(mDrawerLayout.getId(), SystemClock.nanoTime())); }