java.lang.Object | |
↳ | com.urbanairship.app.ForwardingApplicationListener |
Activity listener that forwards application events to a list of listeners.
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
|
Adds a listener.
listener | The added listener. |
---|
Called when the app is backgrounded.
time | Time in milliseconds when the background occurred. |
---|
Called when the app is foregrounded.
time | Time in milliseconds when the foreground occurred. |
---|
Removes a listener.
listener | The removed listener. |
---|