public interface AnalyticsListener
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.
|
void localyticsSessionWillOpen(boolean isFirst, boolean isUpgrade, boolean isResume)
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.void localyticsSessionDidOpen(boolean isFirst, boolean isUpgrade, boolean isResume)
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.void localyticsSessionWillClose()
Localytics.openSession()
is called, so there is no guarantee that
the session will actually close after this callback.void localyticsDidTagEvent(java.lang.String eventName, java.util.Map<java.lang.String,java.lang.String> attributes, long customerValueIncrease)
eventName
- The name of the event.attributes
- The event's attributes.customerValueIncrease
- The change in a customer's lifetime value associated with this event.