class Flurry extends ServiceImpl implements EventTrackingService
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
applicationKey |
context, utils| Constructor and Description |
|---|
Flurry(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkForClass(java.lang.String clazz)
Try to load the given class using
Class#forName(). |
boolean |
checkForJar()
Check if the FlurryAnalytics-x.x.x.jar file is on the classpath.
|
void |
enable(java.lang.String applicationKey)
Enable this service.
|
ServiceType |
getServiceType()
Returns on of
ServiceType that corresponds to this service. |
(package private) void |
initFlurryAgent()
Perform Flurry setup/init
|
boolean |
isEnabled()
This service is enabled
|
void |
logEvent(android.content.Context context,
java.lang.String event)
Send the given event to the backing service.
|
public void enable(java.lang.String applicationKey)
void initFlurryAgent()
public boolean isEnabled()
public ServiceType getServiceType()
ServiceType that corresponds to this service.getServiceType in interface ServiceServiceType.public void logEvent(android.content.Context context,
java.lang.String event)
logEvent in interface EventTrackingServicecontext - Context.event - Event to track. This will be sent to the service represented by this class.public boolean checkForJar()
void checkForClass(java.lang.String clazz)
throws java.lang.ClassNotFoundException
Class#forName().clazz - absolute package name for class to load.java.lang.ClassNotFoundException - if the class could not be loaded