Method | Description | |
---|---|---|
CustomEvent ( string customEventName ) : AnalyticsResult |
Custom Events (optional).
|
|
CustomEvent ( string customEventName, object>.IDictionary |
||
CustomEvent ( string customEventName, Vector3 position ) : AnalyticsResult |
Custom Events (optional).
|
|
FlushEvents ( ) : AnalyticsResult |
Attempts to flush immediately all queued analytics events to the network and filesystem cache if possible (optional).
|
|
SetUserBirthYear ( int birthYear ) : AnalyticsResult |
User Demographics (optional).
|
|
SetUserGender ( Gender gender ) : AnalyticsResult |
User Demographics (optional).
|
|
SetUserId ( string userId ) : AnalyticsResult |
User Demographics (optional).
|
|
Transaction ( string productId, decimal amount, string currency ) : AnalyticsResult |
Tracking Monetization (optional).
|
|
Transaction ( string productId, decimal amount, string currency, string receiptPurchaseData, string signature ) : AnalyticsResult |
Tracking Monetization (optional).
|
Method | Description | |
---|---|---|
GetUnityAnalyticsHandler ( ) : |
||
Transaction ( string productId, decimal amount, string currency, string receiptPurchaseData, string signature, bool usingIAPService ) : AnalyticsResult |
public static CustomEvent ( string customEventName ) : AnalyticsResult | ||
customEventName | string | |
return | AnalyticsResult |
public static CustomEvent ( string customEventName, object>.IDictionary |
||
customEventName | string | |
eventData | object>.IDictionary | |
return | AnalyticsResult |
public static CustomEvent ( string customEventName, Vector3 position ) : AnalyticsResult | ||
customEventName | string | |
position | Vector3 | |
return | AnalyticsResult |
public static FlushEvents ( ) : AnalyticsResult | ||
return | AnalyticsResult |
public static SetUserBirthYear ( int birthYear ) : AnalyticsResult | ||
birthYear | int | Birth year of user. Must be 4-digit year format, only. |
return | AnalyticsResult |
public static SetUserGender ( Gender gender ) : AnalyticsResult | ||
gender | Gender | Gender of user can be "Female", "Male", or "Unknown". |
return | AnalyticsResult |
public static SetUserId ( string userId ) : AnalyticsResult | ||
userId | string | User id. |
return | AnalyticsResult |
public static Transaction ( string productId, decimal amount, string currency ) : AnalyticsResult | ||
productId | string | The id of the purchased item. |
amount | decimal | The price of the item. |
currency | string | Abbreviation of the currency used for the transaction. For example “USD” (United States Dollars). See http:en.wikipedia.orgwikiISO_4217 for a standardized list of currency abbreviations. |
return | AnalyticsResult |
public static Transaction ( string productId, decimal amount, string currency, string receiptPurchaseData, string signature ) : AnalyticsResult | ||
productId | string | The id of the purchased item. |
amount | decimal | The price of the item. |
currency | string | Abbreviation of the currency used for the transaction. For example “USD” (United States Dollars). See http:en.wikipedia.orgwikiISO_4217 for a standardized list of currency abbreviations. |
receiptPurchaseData | string | Receipt data (iOS) receipt ID (android) for in-app purchases to verify purchases with Apple iTunes / Google Play. Use null in the absence of receipts. |
signature | string | Android receipt signature. If using native Android use the INAPP_DATA_SIGNATURE string containing the signature of the purchase data that was signed with the private key of the developer. The data signature uses the RSASSA-PKCS1-v1_5 scheme. Pass in null in absence of a signature. |
return | AnalyticsResult |