|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Analytics
Defines the interface for doing Analytics.
Nested Class Summary | |
---|---|
static interface |
Analytics.AppOptOutCallback
Interface for retrieving the current state of the Application-level opt out flag. |
Method Summary | |
---|---|
boolean |
debugEnabled()
Returns whether debug mode is on. |
Tracker |
getDefaultTracker()
Returns the default Tracker if one exists. |
Tracker |
getTracker(java.lang.String trackingId)
Multiple instances of a Tracker can be created as long as each has its own
trackingId . |
void |
requestAppOptOut(Analytics.AppOptOutCallback callback)
Requests whether the state of the application-level opt is on. |
void |
setAppOptOut(boolean optOut)
Sets or resets the application-level opt out flag. |
void |
setDebug(boolean debug)
Toggles debug mode. |
void |
setDefaultTracker(Tracker tracker)
Sets the default Tracker . |
Method Detail |
---|
void setDebug(boolean debug)
By default, this flag is disabled.
boolean debugEnabled()
Tracker getTracker(java.lang.String trackingId)
Tracker
can be created as long as each has its own
trackingId
. If a Tracker
has already been created (and not
yet closed) for a given trackingId
, that will be
returned.
trackingId
- string of the form UA-xxxx-yTracker getDefaultTracker()
Tracker
if one exists. By default, the default
Tracker
is the first one created.
void setDefaultTracker(Tracker tracker)
Tracker
.
void setAppOptOut(boolean optOut)
optOut
- true if application-level opt out should be enforcedvoid requestAppOptOut(Analytics.AppOptOutCallback callback)
Analytics.AppOptOutCallback.reportAppOptOut(boolean)
method will be called with the
answer once it's been calculated. The callback Analytics.AppOptOutCallback.reportAppOptOut(boolean)
may be called either before or after
this method returns.
It may be called from a different thread.
callback
- to use to report application-level opt out flag
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |