@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 onDrawerStateChanged(int i) { mEventDispatcher.dispatchEvent( new DrawerStateChangedEvent(mDrawerLayout.getId(), i)); }
@Override public void onDrawerStateChanged(int i) { mEventDispatcher.dispatchEvent( new DrawerStateChangedEvent(mDrawerLayout.getId(), SystemClock.nanoTime(), i)); }