Last active
October 9, 2019 18:22
-
-
Save flurrydev/5eb4dbbe79bf602eb40702895777f648 to your computer and use it in GitHub Desktop.
FlurryUnityAPIs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Methods in Flurry.Builder to initialize Flurry agent | |
| void Build(string apiKey); | |
| Flurry.Builder WithAppVersion(string appVersion); // iOS only. For Android, please use Flurry.setVersionName() instead. | |
| Flurry.Builder WithCrashReporting(bool crashReporting); | |
| Flurry.Builder WithContinueSessionMillis(long sessionMillis); | |
| Flurry.Builder WithIncludeBackgroundSessionsInMetrics(bool includeBackgroundSessionsInMetrics); | |
| Flurry.Builder WithLogEnabled(bool enableLog); | |
| Flurry.Builder WithLogLevel(FlurrySDK.Flurry.LogLevel logLevel); // LogLevel = { VERBOSE, DEBUG, INFO, WARN, ERROR, ASSERT } | |
| Flurry.Builder.WithMessaging(bool enableMessaging); | |
| //Methods to set users preferences | |
| void SetAge(int age); | |
| void SetGender(Flurry.Gender gender); | |
| void SetReportLocation(bool reportLocation); | |
| void SetSessionOrigin(string originName, string deepLink); | |
| void SetUserId(string userId); | |
| void SetVersionName(string versionName); // Android only. For iOS, please use Flurry.Builder.WithAppVersion() instead. | |
| void AddOrigin(string originName, string originVersion); | |
| void AddOrigin(string originName, string originVersion, Dictionary<string, string> originParameters); | |
| void AddSessionProperty(string name, string value); | |
| //Methods to get Flurry versions | |
| int GetAgentVersion(); | |
| //Android only | |
| string GetReleaseVersion(); | |
| string GetSessionId(); | |
| //Methods to log Flurry events | |
| Flurry.EventRecordStatus LogEvent(string eventId); | |
| Flurry.EventRecordStatus LogEvent(string eventId, bool timed); | |
| Flurry.EventRecordStatus LogEvent(string eventId, Dictionary<string, string> parameters); | |
| Flurry.EventRecordStatus LogEvent(string eventId, Dictionary<string, string> parameters, bool timed); | |
| void EndTimedEvent(string eventId); | |
| void EndTimedEvent(string eventId, Dictionary<string, string> parameters); | |
| void OnPageView(); // Deprecated, API removed, no longer supported by Flurry. | |
| void OnError(string errorId, string message, string errorClass); | |
| void OnError(string errorId, string message, string errorClass, Dictionary<string, string> parameters); | |
| void LogBreadcrumb(string crashBreadcrumb); | |
| Flurry.EventRecordStatus LogPayment(string productName, string productId, int quantity, double price, | |
| string currency, string transactionId, Dictionary<string, string> parameters); | |
| //method to enable IAP reporting (iOS) | |
| void SetIAPReportingEnabled(bool enableIAP) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment