com.facebook.common.activitylistener.ActivityListener |
Known Indirect Subclasses |
Listener interface for activity lifecycle events.
All methods take the Activity so it's possible to implement a singleton version of this interface that has no-state.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | MAX_PRIORITY | ||||||||||
int | MIN_PRIORITY |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int |
getPriority()
Listeners are fired in order of priority.
| ||||||||||
abstract void |
onActivityCreate(Activity activity)
Called by the Activity base class after the Activity's
onActivityCreate method has
run. | ||||||||||
abstract void |
onDestroy(Activity activity)
Called by the Activity base class from the
onDestroy() method. | ||||||||||
abstract void |
onPause(Activity activity)
Called by the Activity base class from the
onPause() method. | ||||||||||
abstract void |
onResume(Activity activity)
Called by the Activity base class from the
onResume() method. | ||||||||||
abstract void |
onStart(Activity activity)
Called by the Activity base class from the
onStart() method. | ||||||||||
abstract void |
onStop(Activity activity)
Called by the Activity base class from the
onStop() method. |
Listeners are fired in order of priority. Listeners with higher priority are fired first.
Called by the Activity base class after the Activity's onActivityCreate
method has
run.
activity | the activity |
---|
Called by the Activity base class from the onDestroy()
method.
activity | the activity |
---|
Called by the Activity base class from the onPause()
method.
activity | the activity |
---|
Called by the Activity base class from the onResume()
method.
activity | the activity |
---|
Called by the Activity base class from the onStart()
method.
activity | the activity |
---|
Called by the Activity base class from the onStop()
method.
activity | the activity |
---|