C# Class UnityEngine.Analytics.Analytics

Inheritance: Object
显示文件 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
CustomEvent ( string customEventName ) : AnalyticsResult

Custom Events (optional).

CustomEvent ( string customEventName, object>.IDictionary eventData ) : AnalyticsResult
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).

Private Methods

Method Description
GetUnityAnalyticsHandler ( ) : UnityAnalyticsHandler
Transaction ( string productId, decimal amount, string currency, string receiptPurchaseData, string signature, bool usingIAPService ) : AnalyticsResult

Method Details

CustomEvent() public static method

Custom Events (optional).

public static CustomEvent ( string customEventName ) : AnalyticsResult
customEventName string
return AnalyticsResult

CustomEvent() public static method

public static CustomEvent ( string customEventName, object>.IDictionary eventData ) : AnalyticsResult
customEventName string
eventData object>.IDictionary
return AnalyticsResult

CustomEvent() public static method

Custom Events (optional).

public static CustomEvent ( string customEventName, Vector3 position ) : AnalyticsResult
customEventName string
position Vector3
return AnalyticsResult

FlushEvents() public static method

Attempts to flush immediately all queued analytics events to the network and filesystem cache if possible (optional).

public static FlushEvents ( ) : AnalyticsResult
return AnalyticsResult

SetUserBirthYear() public static method

User Demographics (optional).

public static SetUserBirthYear ( int birthYear ) : AnalyticsResult
birthYear int Birth year of user. Must be 4-digit year format, only.
return AnalyticsResult

SetUserGender() public static method

User Demographics (optional).

public static SetUserGender ( Gender gender ) : AnalyticsResult
gender Gender Gender of user can be "Female", "Male", or "Unknown".
return AnalyticsResult

SetUserId() public static method

User Demographics (optional).

public static SetUserId ( string userId ) : AnalyticsResult
userId string User id.
return AnalyticsResult

Transaction() public static method

Tracking Monetization (optional).

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

Transaction() public static method

Tracking Monetization (optional).

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