T - the callback type for the eventpublic final class Event<T> extends Object
onCreate(), onStart(), etc.) is emitted *after*
their super calls are made. Component destruction (onPause(), onStop(), etc.)
are called *before* their super calls are made. Events that are neither are called *after*
their super calls.| Modifier and Type | Class and Description |
|---|---|
static class |
Event.Type |
public static final Event<Event.Type> ALL
public static final Event<Bundle> CREATE
Activity.onCreate(Bundle) and Fragment.onCreate(Bundle). Emitted after
super().public static final Event<BundleBundle> CREATE_PERSISTABLE
Activity.onCreate(Bundle, PersistableBundle). Emitted after super().public static final Event<Void> START
Activity.onStart() and Fragment.onStart(). Emitted after super().public static final Event<Void> RESUME
Activity.onResume() and Fragment.onResume(). Emitted after super().public static final Event<Void> PAUSE
Activity.onPause() and Fragment.onPause(). Emitted before super().public static final Event<Void> STOP
Activity.onStop() and Fragment.onStop(). Emitted before super().public static final Event<Void> DESTROY
Activity.onDestroy() and Fragment.onDestroy(). Emitted before super().public static final Event<Bundle> SAVE_INSTANCE_STATE
Activity.onSaveInstanceState(Bundle) and
Fragment.onSaveInstanceState(Bundle). Emitted after super().public static final Event<BundleBundle> SAVE_INSTANCE_STATE_PERSISTABLE
Activity.onSaveInstanceState(Bundle, PersistableBundle). Emitted after super().public static final Event<Configuration> CONFIGURATION_CHANGED
Activity.onConfigurationChanged(Configuration) and
Fragment.onConfigurationChanged(Configuration). Emitted after super().public static final Event<ActivityResult> ACTIVITY_RESULT
Activity.onActivityResult(int, int, Intent) and
Fragment.onActivityResult(int, int, Intent). Emitted after super().public static final Event<RequestPermissionsResult> REQUEST_PERMISSIONS_RESULT
Activity.onRequestPermissionsResult(int, String[], int[]) and
Fragment.onRequestPermissionsResult(int, String[], int[]). Emitted after super().public static final Event<Void> RESTART
Activity.onRestart(). Emitted after super().public static final Event<Bundle> RESTORE_INSTANCE_STATE
Activity.onRestoreInstanceState(Bundle). Emitted after super().public static final Event<BundleBundle> RESTORE_INSTANCE_STATE_PERSISTABLE
Activity.onRestoreInstanceState(Bundle, PersistableBundle). Emitted after
super().public static final Event<Intent> NEW_INTENT
Activity.onNewIntent(Intent). Emitted after super().public static final Event<Void> BACK_PRESSED
Activity.onBackPressed(). Emitted after super().public static final Event<Void> ATTACHED_TO_WINDOW
Activity.onAttachedToWindow(). Emitted after super().public static final Event<Void> DETACHED_FROM_WINDOW
Activity.onDetachedFromWindow(). Emitted after super().public static final Event<Context> ATTACH
Fragment.onAttach(Context). Emitted after super().public static final Event<Bundle> CREATE_VIEW
Fragment.onCreateView(LayoutInflater, ViewGroup, Bundle). Emitted after super().public static final Event<Bundle> ACTIVITY_CREATED
Fragment.onActivityCreated(Bundle). Emitted after super().public static final Event<Bundle> VIEW_STATE_RESTORED
Fragment.onViewStateRestored(Bundle). Emitted after super().public static final Event<Void> DESTROY_VIEW
Fragment.onDestroyView(). Emitted before super().public static final Event<Void> DETACH
Fragment.onDetach(). Emitted before super().