|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adjust.sdk.Adjust
public class Adjust
The main interface to Adjust.
Use the methods of this class to tell Adjust about the usage of your app. See the README for details.
| Constructor Summary | |
|---|---|
Adjust()
|
|
| Method Summary | |
|---|---|
static void |
appDidLaunch(android.app.Activity activity,
String appToken,
String environment,
String logLevel,
boolean eventBuffering)
|
static void |
appWillOpenUrl(android.net.Uri url)
|
static Boolean |
isEnabled()
Check if the SDK is enabled or disabled |
static void |
onPause()
Tell Adjust that an activity will pause. |
static void |
onResume(android.app.Activity activity)
Tell Adjust that an activity did resume. |
static void |
setEnabled(Boolean enabled)
Enable or disable the adjust SDK |
static void |
setOnFinishedListener(OnFinishedListener listener)
|
static void |
setSdkPrefix(String sdkPrefix)
|
static void |
trackEvent(String eventToken)
Tell Adjust that a particular event has happened. |
static void |
trackEvent(String eventToken,
Map<String,String> parameters)
|
static void |
trackRevenue(double amountInCents)
Tell Adjust that a user generated some revenue. |
static void |
trackRevenue(double amountInCents,
String eventToken)
|
static void |
trackRevenue(double amountInCents,
String eventToken,
Map<String,String> parameters)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Adjust()
| Method Detail |
|---|
public static void onResume(android.app.Activity activity)
activity - The activity that has just resumed.public static void onPause()
public static void setOnFinishedListener(OnFinishedListener listener)
public static void trackEvent(String eventToken)
eventToken - The Event Token for this kind of event. They are created
in the dashboard at http://adjust.io and should be six characters long.parameters - An optional dictionary containing the callback parameters.
Provide key-value-pairs to be forwarded to your callbacks.
public static void trackEvent(String eventToken,
Map<String,String> parameters)
public static void trackRevenue(double amountInCents)
amountInCents - The amount in cents (example: 1.5 means one and a half cents)eventToken - The token for this revenue event (optional, see above)parameters - Parameters for this revenue event (optional, see above)
public static void trackRevenue(double amountInCents,
String eventToken)
public static void trackRevenue(double amountInCents,
String eventToken,
Map<String,String> parameters)
public static void setEnabled(Boolean enabled)
enabled - The flag to enable or disable the adjust SDKpublic static Boolean isEnabled()
public static void appWillOpenUrl(android.net.Uri url)
public static void appDidLaunch(android.app.Activity activity,
String appToken,
String environment,
String logLevel,
boolean eventBuffering)
public static void setSdkPrefix(String sdkPrefix)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||