public class TuneEvent extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
ACHIEVEMENT_UNLOCKED |
static String |
ADD_TO_CART |
static String |
ADD_TO_WISHLIST |
static String |
ADDED_PAYMENT_INFO |
static String |
CHECKOUT_INITIATED |
static String |
CONTENT_VIEW |
static String |
DEVICE_FORM_WEARABLE |
static String |
INVITE |
static String |
LEVEL_ACHIEVED |
static String |
LOGIN |
static String |
PURCHASE |
static String |
RATED |
static String |
REGISTRATION |
static String |
RESERVATION |
static String |
SEARCH |
static String |
SHARE |
static String |
SPENT_CREDITS |
static String |
TUTORIAL_COMPLETE |
Constructor and Description |
---|
TuneEvent(int eventId)
Initialize TuneEvent with an event ID
|
TuneEvent(String eventName)
Initialize TuneEvent with an event name
|
Modifier and Type | Method and Description |
---|---|
String |
getAttribute1() |
String |
getAttribute2() |
String |
getAttribute3() |
String |
getAttribute4() |
String |
getAttribute5() |
String |
getContentId() |
String |
getContentType() |
String |
getCurrencyCode() |
Date |
getDate1() |
Date |
getDate2() |
String |
getDeviceForm() |
int |
getEventId() |
List<TuneEventItem> |
getEventItems() |
String |
getEventName() |
int |
getLevel() |
int |
getQuantity() |
double |
getRating() |
String |
getReceiptData() |
String |
getReceiptSignature() |
String |
getRefId() |
double |
getRevenue() |
String |
getSearchString() |
Set<TuneAnalyticsVariable> |
getTags() |
TuneEvent |
withAdvertiserRefId(String refId)
Set an advertiser ref ID to associate with event
|
TuneEvent |
withAttribute1(String attribute1)
Set custom attribute to associate with event
|
TuneEvent |
withAttribute2(String attribute2)
Set custom attribute to associate with event
|
TuneEvent |
withAttribute3(String attribute3)
Set custom attribute to associate with event
|
TuneEvent |
withAttribute4(String attribute4)
Set custom attribute to associate with event
|
TuneEvent |
withAttribute5(String attribute5)
Set custom attribute to associate with event
|
TuneEvent |
withContentId(String contentId)
Set content id to associate with event
|
TuneEvent |
withContentType(String contentType)
Set content type to associate with event
|
TuneEvent |
withCurrencyCode(String currencyCode)
Set a currency code to associate with event
|
TuneEvent |
withDate1(Date date1)
Set first date/start date to associate with event
|
TuneEvent |
withDate2(Date date2)
Set second date/end date to associate with event
|
TuneEvent |
withDeviceForm(String deviceForm)
Set device form (phone/tablet/wearable)
|
TuneEvent |
withEventItems(List<TuneEventItem> items)
Set event items to associate with event
|
TuneEvent |
withLevel(int level)
Set level to associate with event
|
TuneEvent |
withQuantity(int quantity)
Set quantity to associate with event
|
TuneEvent |
withRating(double rating)
Set rating to associate with event
|
TuneEvent |
withReceipt(String receiptData,
String receiptSignature)
Set Google Play receipt to associate with event for purchase validation
|
TuneEvent |
withRevenue(double revenue)
Set a revenue amount to associate with event
|
TuneEvent |
withSearchString(String searchString)
Set search string to associate with event
|
TuneEvent |
withTagAsDate(String name,
Date value)
Add a date tag
|
TuneEvent |
withTagAsGeolocation(String name,
TuneLocation value)
Add a location tag
|
TuneEvent |
withTagAsNumber(String name,
double value)
Add a double tag
|
TuneEvent |
withTagAsNumber(String name,
float value)
Add a float tag
|
TuneEvent |
withTagAsNumber(String name,
int value)
Add an int tag
|
TuneEvent |
withTagAsString(String name,
String value)
Add a String tag
|
public static final String DEVICE_FORM_WEARABLE
public static final String REGISTRATION
public static final String LOGIN
public static final String ADD_TO_WISHLIST
public static final String ADD_TO_CART
public static final String ADDED_PAYMENT_INFO
public static final String RESERVATION
public static final String CHECKOUT_INITIATED
public static final String PURCHASE
public static final String SEARCH
public static final String CONTENT_VIEW
public static final String TUTORIAL_COMPLETE
public static final String LEVEL_ACHIEVED
public static final String ACHIEVEMENT_UNLOCKED
public static final String SPENT_CREDITS
public static final String INVITE
public static final String RATED
public static final String SHARE
public TuneEvent(String eventName)
eventName
- Event name in TUNE systempublic TuneEvent(int eventId)
eventId
- Event ID in TUNE systempublic TuneEvent withRevenue(double revenue)
revenue
- Revenue associated with the eventpublic TuneEvent withCurrencyCode(String currencyCode)
currencyCode
- Currency codepublic TuneEvent withAdvertiserRefId(String refId)
refId
- Advertiser ref IDpublic TuneEvent withEventItems(List<TuneEventItem> items)
items
- List of event itemspublic TuneEvent withReceipt(String receiptData, String receiptSignature)
receiptData
- Google Play receipt datareceiptSignature
- Google Play receipt signaturepublic TuneEvent withContentType(String contentType)
contentType
- Content typepublic TuneEvent withContentId(String contentId)
contentId
- Content idpublic TuneEvent withLevel(int level)
level
- Level (progress in game)public TuneEvent withQuantity(int quantity)
quantity
- Quantitypublic TuneEvent withSearchString(String searchString)
searchString
- Search string usedpublic TuneEvent withRating(double rating)
rating
- Rating givenpublic TuneEvent withDate1(Date date1)
date1
- First date or start datepublic TuneEvent withDate2(Date date2)
date2
- Second date or end datepublic TuneEvent withAttribute1(String attribute1)
attribute1
- Custom attributepublic TuneEvent withAttribute2(String attribute2)
attribute2
- Custom attributepublic TuneEvent withAttribute3(String attribute3)
attribute3
- Custom attributepublic TuneEvent withAttribute4(String attribute4)
attribute4
- Custom attributepublic TuneEvent withAttribute5(String attribute5)
attribute5
- Custom attributepublic TuneEvent withDeviceForm(String deviceForm)
deviceForm
- Type of devicepublic TuneEvent withTagAsString(String name, String value)
name
- Tag namevalue
- Tag valuepublic TuneEvent withTagAsNumber(String name, int value)
name
- Tag namevalue
- Tag valuepublic TuneEvent withTagAsNumber(String name, double value)
name
- Tag namevalue
- Tag valuepublic TuneEvent withTagAsNumber(String name, float value)
name
- Tag namevalue
- Tag valuepublic TuneEvent withTagAsDate(String name, Date value)
name
- Tag namevalue
- Tag valuepublic TuneEvent withTagAsGeolocation(String name, TuneLocation value)
name
- Tag namevalue
- Tag valuepublic String getEventName()
public int getEventId()
public double getRevenue()
public String getCurrencyCode()
public String getRefId()
public List<TuneEventItem> getEventItems()
public String getReceiptData()
public String getReceiptSignature()
public String getContentType()
public String getContentId()
public int getLevel()
public int getQuantity()
public String getSearchString()
public double getRating()
public Date getDate1()
public Date getDate2()
public String getAttribute1()
public String getAttribute2()
public String getAttribute3()
public String getAttribute4()
public String getAttribute5()
public String getDeviceForm()
public Set<TuneAnalyticsVariable> getTags()