com.facebook.common.activitylistener.ActivityListener |
![]() |
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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. |
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 |
---|