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