java.lang.Object | |
↳ | com.urbanairship.LifeCycleCallbacks |
This helper class registers lifecycle callbacks.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LifeCycleCallbacks(Application application)
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
onActivityPaused(Activity activity)
Called when an activity is paused.
| ||||||||||
void |
onActivityResumed(Activity activity)
Called when an activity is resumed.
| ||||||||||
void |
onActivityStarted(Activity activity)
Called when an activity is started.
| ||||||||||
void |
onActivityStopped(Activity activity)
Called when an activity is stopped.
| ||||||||||
void |
register()
This registers the activity callbacks for an application.
| ||||||||||
void |
unregister()
This unregisters the activity callbacks for an application.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Called when an activity is paused.
activity | The paused activity. |
---|
Called when an activity is resumed.
activity | The resumed activity. |
---|
Called when an activity is started.
activity | The started activity. |
---|
Called when an activity is stopped.
activity | The stopped activity. |
---|
This registers the activity callbacks for an application.
This unregisters the activity callbacks for an application.