C# Class UnityEngine.Analytics.Analytics

Inheritance: Object
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

CustomEvent() public static méthode

Custom Events (optional).

public static CustomEvent ( string customEventName ) : AnalyticsResult
customEventName string
Résultat AnalyticsResult

CustomEvent() public static méthode

public static CustomEvent ( string customEventName, object>.IDictionary eventData ) : AnalyticsResult
customEventName string
eventData object>.IDictionary
Résultat AnalyticsResult

CustomEvent() public static méthode

Custom Events (optional).

public static CustomEvent ( string customEventName, Vector3 position ) : AnalyticsResult
customEventName string
position Vector3
Résultat AnalyticsResult

FlushEvents() public static méthode

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

public static FlushEvents ( ) : AnalyticsResult
Résultat AnalyticsResult

SetUserBirthYear() public static méthode

User Demographics (optional).

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

SetUserGender() public static méthode

User Demographics (optional).

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

SetUserId() public static méthode

User Demographics (optional).

public static SetUserId ( string userId ) : AnalyticsResult
userId string User id.
Résultat AnalyticsResult

Transaction() public static méthode

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.
Résultat AnalyticsResult

Transaction() public static méthode

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.
Résultat AnalyticsResult