public static class

ActivityMonitor.SimpleListener

extends Object
implements ActivityMonitor.Listener
java.lang.Object
   ↳ com.urbanairship.ActivityMonitor.SimpleListener

Class Overview

A convenience class to extend when you only want to listen for a subset of of activity events.

Summary

Public Constructors
SimpleListener()
Public Methods
void onActivityCreated(Activity activity, Bundle bundle)
void onActivityDestroyed(Activity activity)
void onActivityPaused(Activity activity)
void onActivityResumed(Activity activity)
void onActivitySaveInstanceState(Activity activity, Bundle bundle)
void onActivityStarted(Activity activity)
void onActivityStopped(Activity activity)
void onBackground(long time)
Called when the app is backgrounded.
void onForeground(long time)
Called when the app is foregrounded.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.app.Application.ActivityLifecycleCallbacks
From interface com.urbanairship.ActivityMonitor.Listener

Public Constructors

public SimpleListener ()

Public Methods

public void onActivityCreated (Activity activity, Bundle bundle)

public void onActivityDestroyed (Activity activity)

public void onActivityPaused (Activity activity)

public void onActivityResumed (Activity activity)

public void onActivitySaveInstanceState (Activity activity, Bundle bundle)

public void onActivityStarted (Activity activity)

public void onActivityStopped (Activity activity)

public void onBackground (long time)

Called when the app is backgrounded.

public void onForeground (long time)

Called when the app is foregrounded.