public class

ForwardingApplicationListener

extends Object
implements ApplicationListener
java.lang.Object
   ↳ com.urbanairship.app.ForwardingApplicationListener

Class Overview

Activity listener that forwards application events to a list of listeners.

Summary

Public Constructors
ForwardingApplicationListener()
Public Methods
void addListener(ApplicationListener listener)
Adds a listener.
void onBackground(long time)
Called when the app is backgrounded.
void onForeground(long time)
Called when the app is foregrounded.
void removeListener(ApplicationListener listener)
Removes a listener.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.urbanairship.app.ApplicationListener

Public Constructors

public ForwardingApplicationListener ()

Public Methods

public void addListener (ApplicationListener listener)

Adds a listener.

Parameters
listener The added listener.

public void onBackground (long time)

Called when the app is backgrounded.

Parameters
time Time in milliseconds when the background occurred.

public void onForeground (long time)

Called when the app is foregrounded.

Parameters
time Time in milliseconds when the foreground occurred.

public void removeListener (ApplicationListener listener)

Removes a listener.

Parameters
listener The removed listener.