public class FoamEvent
extends java.lang.Object
FoamApiKeys setup will receive the event.
Example Usage:
new FoamEvent().track(this, "my-custom-event")| Constructor and Description |
|---|
FoamEvent() |
| Modifier and Type | Method and Description |
|---|---|
void |
track(android.app.Activity activity,
java.lang.String event)
Track custom event.
|
(package private) void |
track(android.app.Application application,
android.content.Context context,
java.lang.String event)
Track custom event
|
void |
track(android.app.Service service,
java.lang.String event)
Track custom event.
|
public void track(android.app.Activity activity,
java.lang.String event)
FoamApiKeys annotation on your Application class.activity - Activity on which the event occurred.event - Your custom event string.public void track(android.app.Service service,
java.lang.String event)
FoamApiKeys annotation on your Application class.service - Service in which the event occurred.event - Your custom event string.void track(android.app.Application application,
android.content.Context context,
java.lang.String event)
application - Application object. Must implement FoamAppcontext - Service or Activity.event - Your custom event string.