public abstract class Cly extends java.lang.Object implements Usage
| Modifier and Type | Field and Description |
|---|---|
protected static Cly |
cly |
protected CtxCore |
ctx |
protected SDKInterface |
sdkInterface |
| Modifier | Constructor and Description |
|---|---|
protected |
Cly() |
| Modifier and Type | Method and Description |
|---|---|
Usage |
addCrashReport(java.lang.Throwable t,
boolean fatal)
Send Crash Report to the server.
|
Usage |
addCrashReport(java.lang.Throwable t,
boolean fatal,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> segments,
java.lang.String... logs)
Send Crash Report to the server.
|
Usage |
addLocation(double latitude,
double longitude)
Send location information to the server.
|
Usage |
addParam(java.lang.String key,
java.lang.Object value)
Add parameter to this session which will be sent along with next request.
|
Event |
event(java.lang.String key)
Create event object, don't record it yet.
|
protected static Session |
getSession() |
protected static Session |
session(CtxCore ctx) |
Event |
timedEvent(java.lang.String key)
Get existing or create new timed event object, don't record it.
|
User |
user()
Get current User Profile object.
|
View |
view(java.lang.String name)
Identical to
Usage.view(String, boolean), but without start parameter which
is determined automatically based on whether this view is first in this session. |
View |
view(java.lang.String name,
boolean start)
Start new view.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeDeviceIdWithMerge, changeDeviceIdWithoutMerge, getDeviceId, login, logout, resetDeviceIdprotected static Cly cly
protected CtxCore ctx
protected SDKInterface sdkInterface
protected static Session getSession()
public Event event(java.lang.String key)
Usageevent in interface Usagekey - key for this event, cannot be null or emptyEvent.record()public Event timedEvent(java.lang.String key)
UsagetimedEvent in interface Usagekey - key for this event, cannot be null or emptyto end timed eventpublic User user()
user in interface Usageto get {@link UserEditor} object,
to submit changes to the serverpublic Usage addParam(java.lang.String key, java.lang.Object value)
Usagepublic Usage addCrashReport(java.lang.Throwable t, boolean fatal)
UsageaddCrashReport in interface Usaget - Throwable to logfatal - whether this crash report should be displayed as fatal in dashboard or notpublic Usage addCrashReport(java.lang.Throwable t, boolean fatal, java.lang.String name, java.util.Map<java.lang.String,java.lang.String> segments, java.lang.String... logs)
UsageaddCrashReport in interface Usaget - Throwable to logfatal - whether this crash report should be displayed as fatal in dashboard or notname - (optional, can be null) name of the report, falls back to first line of stack trace by defaultsegments - (optional, can be null) additional crash segments maplogs - (optional, can be null) additional log lines (separated by \n) or comment about this crash reportpublic Usage addLocation(double latitude, double longitude)
UsageaddLocation in interface Usagelatitude - geographical latitude of the userlongitude - geographical longitude of the userpublic View view(java.lang.String name, boolean start)
Usageview in interface Usagename - String representing name of this Viewstart - whether this view is first in current application launchView, you're responsible for its ending by calling View.stop(boolean)public View view(java.lang.String name)
UsageUsage.view(String, boolean), but without start parameter which
is determined automatically based on whether this view is first in this session.
Creates begin request if this session hasn't yet been began.view in interface Usagename - String representing name of this ViewView, you're responsible for its ending by calling View.stop(boolean)