public class UnbluNotificationListener
extends java.lang.Object
implements com.unblu.sdk.core.internal.utils.IActiveActivityListener
Constructor and Description |
---|
UnbluNotificationListener()
Constructor that registers itself to listen to activity changes
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Unregister itself to stop listening to activity changes
|
void |
onActiveActivityChanged(android.app.Activity activeActivity)
Listen to activityChanges and acts if detects an Unblu notification
|
public UnbluNotificationListener()
This listener must be used, attached to your preferred lifecycle(Application/Activity) if you intend to have Unblu SDK handle notifications by default.
public void onActiveActivityChanged(android.app.Activity activeActivity)
onActiveActivityChanged
in interface com.unblu.sdk.core.internal.utils.IActiveActivityListener
public void destroy()