12/11/2023 0 Comments Plug in unity definitionVoid setMinTimeBetweenSessions(int seconds) Set a custom value for the minimum required time between sessions. To get the AppsFlyer Unique ID for a new install.īy default, at least 5 seconds must elapse between 2 app launches to count as separate sessions. Void anonymizeUser(bool shouldAnonymizeUser) To stop anonymizing, call anonymizeUser again, set to false. Use during initialization to explicitly anonymize the user install, events, and sessions. Void recordLocation(double latitude, double longitude)ĪppsFlyer.recordLocation(40.7128, 74.0060) Public void setCurrenc圜ode ( String currenc圜ode ) Void setOneLinkCustomDomain(params string domains)ĪtOneLinkCustomDomain("test.domain", "test2.domain") SetResolveDeepLinkURLs(params string urls)ĪtResolveDeepLinkURLs("", "") Īdvertisers can use this method to set vanity OneLink domains. Learn more about resolving wrapped deep link URLs. Set the OneLink template ID used to create custom attribution links for user invites.Īdd additional data to send to external partner platforms.ĭictionary customData = new Dictionary() String version = AppsFlyer.getSdkVersion() ĪtCustomerUserId("custom_user_id") Was the stopSDK (boolean) API set to true. Once invoked, the SDK no longer communicates with AppsFLyer servers and stops functioning. In some extreme cases, you might want to shut down all SDK functions for regulators and privacy compliance requirements. Void sendEvent(string eventName, Dictionary eventValues)ĮventValues.Add(AFInAppEvents.CURRENCY, "USD") ĮventValues.Add(AFInAppEvents.REVENUE, "0.99") ĪndEvent(AFInAppEvents.PURCHASE, eventValues) Recording of in-app events is performed by calling sendEvent with the event name and value parameters. Once this API is invoked, the SDK will start, sessions will be immediately sent, and all background foreground transitions will record a session. Void initSDK(string devKey, string appID, MonoBehaviour gameObject)ĪppsFlyer.initSDK("dev_key", "app_id") // without deeplinkingĪppsFlyer.initSDK("dev_key", "app_id", this) // with deeplinking If your app is for Android only, pass null for the app ID. The game object contains the IAppsFlyerConversionData interface. Initialize the plugin with the dev key and app ID.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |