public class Rakam extends Object
getInstance() have been deprecated.
Please call those methods on the RakamClient instance instead, for example:
Rakam.getInstance().logEvent();RakamClient| Constructor and Description |
|---|
Rakam() |
| Modifier and Type | Method and Description |
|---|---|
static void |
disableLocationListening()
Deprecated.
|
static void |
enableLocationListening()
Deprecated.
|
static void |
enableNewDeviceIdPerInstall(boolean newDeviceIdPerInstall)
Deprecated.
|
static void |
endSession()
Deprecated.
|
static String |
getDeviceId()
Deprecated.
|
static RakamClient |
getInstance()
Gets the default instance.
|
static RakamClient |
getInstance(String instance)
Gets the specified instance.
|
static void |
initialize(android.content.Context context,
URL apiUrl,
String apiKey)
Deprecated.
|
static void |
initialize(android.content.Context context,
URL apiUrl,
String apiKey,
String userId)
Deprecated.
|
static void |
logEvent(String eventType)
Deprecated.
|
static void |
logEvent(String eventType,
org.json.JSONObject eventProperties)
Deprecated.
|
static void |
logRevenue(String productId,
int quantity,
double price)
Deprecated.
|
static void |
logRevenue(String productId,
int quantity,
double price,
String receipt,
String receiptSignature)
Deprecated.
|
static void |
setOptOut(boolean optOut)
Deprecated.
|
static void |
setSessionTimeoutMillis(long sessionTimeoutMillis)
Deprecated.
|
static void |
setUserId(String userId)
Deprecated.
|
static void |
setUserProperties(org.json.JSONObject userProperties)
Deprecated.
|
static void |
setUserProperties(org.json.JSONObject userProperties,
boolean replace)
Deprecated.
|
static void |
startSession()
Deprecated.
|
static void |
uploadEvents()
Deprecated.
|
static void |
useAdvertisingIdForDeviceId()
Deprecated.
|
public static RakamClient getInstance()
public static RakamClient getInstance(String instance)
instance - name to get "ex app 1"@Deprecated public static void initialize(android.content.Context context, URL apiUrl, String apiKey)
logEvent();.context - the contextapiKey - the api key@Deprecated public static void initialize(android.content.Context context, URL apiUrl, String apiKey, String userId)
logEvent();.context - the contextapiKey - the api keyuserId - the user id@Deprecated public static void enableNewDeviceIdPerInstall(boolean newDeviceIdPerInstall)
newDeviceIdPerInstall - the new device id per install@Deprecated public static void useAdvertisingIdForDeviceId()
@Deprecated public static void enableLocationListening()
@Deprecated public static void disableLocationListening()
@Deprecated public static void setSessionTimeoutMillis(long sessionTimeoutMillis)
sessionTimeoutMillis - the session timeout millis@Deprecated public static void setOptOut(boolean optOut)
optOut - the opt out@Deprecated public static void logEvent(String eventType)
eventType - the event type@Deprecated public static void logEvent(String eventType, org.json.JSONObject eventProperties)
eventType - the event typeeventProperties - the event properties@Deprecated public static void uploadEvents()
@Deprecated public static void startSession()
@Deprecated public static void endSession()
@Deprecated public static void logRevenue(String productId, int quantity, double price)
productId - the product idquantity - the quantityprice - the price@Deprecated public static void logRevenue(String productId, int quantity, double price, String receipt, String receiptSignature)
productId - the product idquantity - the quantityprice - the pricereceipt - the receiptreceiptSignature - the receipt signature@Deprecated public static void setUserProperties(org.json.JSONObject userProperties)
userProperties - the user properties@Deprecated public static void setUserProperties(org.json.JSONObject userProperties, boolean replace)
userProperties - the user propertiesreplace - the replace@Deprecated public static void setUserId(String userId)
userId - the user id@Deprecated public static String getDeviceId()
Copyright © 2019. All rights reserved.