public class AnalyticsListenerAdapter extends java.lang.Object implements AnalyticsListener
AnalyticsListener
.
Any custom listener that cares only about a subset of the methods of this listener can simply
subclass this adapter class instead of implementing the interface directly.Constructor and Description |
---|
AnalyticsListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
localyticsDidTagEvent(java.lang.String eventName,
java.util.Map<java.lang.String,java.lang.String> attributes,
long customerValueIncrease)
Callback that an event was tagged.
|
void |
localyticsSessionDidOpen(boolean isFirst,
boolean isUpgrade,
boolean isResume)
Callback that a session was either opened or resumed.
|
void |
localyticsSessionWillClose()
Callback that a session will be closed.
|
void |
localyticsSessionWillOpen(boolean isFirst,
boolean isUpgrade,
boolean isResume)
Callback that a session will be opened.
|
public void localyticsSessionWillOpen(boolean isFirst, boolean isUpgrade, boolean isResume)
AnalyticsListener
localyticsSessionWillOpen
in interface AnalyticsListener
isFirst
- Boolean indicating that the session will be the first session ever opened
for this installation.isUpgrade
- Boolean indicating that the session will be the first session opened since
the app was upgraded.isResume
- Boolean indicating that an old session will be resumed, as opposed to
a new session being opened.public void localyticsSessionDidOpen(boolean isFirst, boolean isUpgrade, boolean isResume)
AnalyticsListener
localyticsSessionDidOpen
in interface AnalyticsListener
isFirst
- Boolean indicating that the session is the first session ever opened
for this installation.isUpgrade
- Boolean indicating that the session is the first session opened since
the app was upgraded.isResume
- Boolean indicating that an old session was resumed, as opposed to
a new session was opened.public void localyticsSessionWillClose()
AnalyticsListener
Localytics.openSession()
is called, so there is no guarantee that
the session will actually close after this callback.localyticsSessionWillClose
in interface AnalyticsListener
public void localyticsDidTagEvent(java.lang.String eventName, java.util.Map<java.lang.String,java.lang.String> attributes, long customerValueIncrease)
AnalyticsListener
localyticsDidTagEvent
in interface AnalyticsListener
eventName
- The name of the event.attributes
- The event's attributes.customerValueIncrease
- The change in a customer's lifetime value associated with this event.