|
AdaptySDK
|
The main class for interacting with the Adapty SDK. More...
Static Public Member Functions | |
| static void | Activate (AdaptyConfiguration.Builder configurationBuilder, Action< AdaptyError > completionHandler) |
| Use this method to initialize the Adapty SDK. | |
| static void | Activate (AdaptyConfiguration configuration, Action< AdaptyError > completionHandler) |
| Use this method to initialize the Adapty SDK. | |
| static void | GetPaywall (string placementId, Action< AdaptyPaywall, AdaptyError > completionHandler) |
| Adapty allows you remotely configure the products that will be displayed in your app. This way you don’t have to hardcode the products and can dynamically change offers or run A/B tests without app releases. | |
| static void | GetPaywall (string placementId, AdaptyPlacementFetchPolicy fetchPolicy, TimeSpan? loadTimeout, Action< AdaptyPaywall, AdaptyError > completionHandler) |
| Adapty allows you remotely configure the products that will be displayed in your app. This way you don’t have to hardcode the products and can dynamically change offers or run A/B tests without app releases. | |
| static void | GetPaywall (string placementId, string locale, Action< AdaptyPaywall, AdaptyError > completionHandler) |
| Adapty allows you remotely configure the products that will be displayed in your app. This way you don’t have to hardcode the products and can dynamically change offers or run A/B tests without app releases. | |
| static void | GetPaywall (string placementId, string locale, AdaptyPlacementFetchPolicy fetchPolicy, TimeSpan? loadTimeout, Action< AdaptyPaywall, AdaptyError > completionHandler) |
| Adapty allows you remotely configure the products that will be displayed in your app. This way you don’t have to hardcode the products and can dynamically change offers or run A/B tests without app releases. | |
| static void | GetOnboarding (string placementId, string locale, AdaptyPlacementFetchPolicy fetchPolicy, TimeSpan? loadTimeout, Action< AdaptyOnboarding, AdaptyError > completionHandler) |
| Adapty allows you remotely configure onboarding screens that will be displayed in your app. This way you don't have to hardcode the onboarding content and can dynamically change it or run A/B tests without app releases. | |
| static void | GetPaywallForDefaultAudience (string placementId, string locale, AdaptyPlacementFetchPolicy fetchPolicy, Action< AdaptyPaywall, AdaptyError > completionHandler) |
| This method enables you to retrieve the paywall from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server. | |
| static void | GetOnboardingForDefaultAudience (string placementId, string locale, AdaptyPlacementFetchPolicy fetchPolicy, Action< AdaptyOnboarding, AdaptyError > completionHandler) |
| This method enables you to retrieve the onboarding from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server. | |
| static void | GetPaywallProducts (AdaptyPaywall paywall, Action< IList< AdaptyPaywallProduct >, AdaptyError > completionHandler) |
| Fetches the products array for a given paywall. | |
| static void | GetProfile (Action< AdaptyProfile, AdaptyError > completionHandler) |
| Retrieves the current user profile with access levels, subscriptions, and other information. | |
| static void | Identify (string customerUserId, Action< AdaptyError > completionHandler) |
| Identifies the user with their user ID in your system. | |
| static void | Identify (string customerUserId, Guid iosAppAccountToken, string androidObfuscatedAccountId, Action< AdaptyError > completionHandler) |
| Identifies the user with their user ID and platform-specific account identifiers. | |
| static void | IsActivated (Action< bool, AdaptyError > completionHandler) |
| Checks if the native Adapty SDK is activated and ready to use. | |
| static void | GetLoglevel (Action< AdaptyLogLevel, AdaptyError > completionHandler) |
| Returns the current log level of the Adapty SDK. | |
| static void | SetLogLevel (AdaptyLogLevel level, Action< AdaptyError > completionHandler) |
| Sets the log level for the Adapty SDK. | |
| static void | GetCurrentInstallationStatus (Action< AdaptyInstallationStatus, AdaptyError > completionHandler) |
| Returns the current installation status of the app. | |
| static void | Logout (Action< AdaptyError > completionHandler) |
| Logs out the current user and clears the local profile data. | |
| static void | CreateWebPaywallUrl (AdaptyPaywall paywall, Action< string, AdaptyError > completionHandler) |
| Creates a web URL for the paywall that can be used to display the paywall in a web view or browser. | |
| static void | CreateWebPaywallUrl (AdaptyPaywallProduct product, Action< string, AdaptyError > completionHandler) |
| Creates a web URL for a specific product that can be used to display the purchase page in a web view or browser. | |
| static void | OpenWebPaywall (AdaptyPaywall paywall, Action< AdaptyError > completionHandler) |
| Opens the paywall in a web view or browser. | |
| static void | OpenWebPaywall (AdaptyPaywallProduct product, Action< AdaptyError > completionHandler) |
| Opens the product purchase page in a web view or browser. | |
| static void | LogShowPaywall (AdaptyPaywall paywall, Action< AdaptyError > completionHandler) |
| Call this method to notify Adapty SDK, that particular paywall was shown to user. | |
| static void | UpdateAppStoreCollectingRefundDataConsent (Boolean consent, Action< AdaptyError > completionHandler) |
| Updates the current user's refund data collection consent for App Store purchases. | |
| static void | UpdateAppStoreRefundPreference (AdaptyRefundPreference refundPreference, Action< AdaptyError > completionHandler) |
| Sets the refund preference individually for the current user. | |
| static void | MakePurchase (AdaptyPaywallProduct product, AdaptyPurchaseParameters purchaseParameters, Action< AdaptyPurchaseResult, AdaptyError > completionHandler) |
| Makes a purchase for the specified product. | |
| static void | PresentCodeRedemptionSheet (Action< AdaptyError > completionHandler) |
| Presents the App Store code redemption sheet, enabling the user to redeem promotional codes. | |
| static void | ReportTransaction (string transactionId, string variationId, Action< AdaptyError > completionHandler) |
| Reports a transaction to Adapty in Observer mode. | |
| static void | RestorePurchases (Action< AdaptyProfile, AdaptyError > completionHandler) |
| Restores previous purchases made by the user. | |
| static void | GetNativeSDKVersion (Action< string, AdaptyError > completionHandler) |
| Returns the version of the native Adapty SDK (iOS or Android). | |
| static void | SetFallback (string fileName, Action< AdaptyError > completionHandler) |
| Sets fallback paywalls that will be used when there's no internet connection or when the Adapty backend is unavailable. | |
| static void | SetFallbackPaywalls (string fileName, Action< AdaptyError > completionHandler) |
| static void | SetIntegrationIdentifier (string key, string value, Action< AdaptyError > completionHandler) |
| Sets integration identifiers for the profile to integrate with third-party analytics and attribution services. | |
| static void | UpdateAttribution (string jsonString, string source, Action< AdaptyError > completionHandler) |
| Updates attribution data for the profile to track user acquisition sources. | |
| static void | UpdateProfile (AdaptyProfileParameters param, Action< AdaptyError > completionHandler) |
| Updates the user profile with optional attributes such as email, phone number, name, etc. | |
| static void | GetPaywallForDefaultAudience (string placementId, Action< AdaptyPaywall, AdaptyError > completionHandler) |
| This method enables you to retrieve the paywall from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server. | |
| static void | GetPaywallForDefaultAudience (string placementId, AdaptyPlacementFetchPolicy fetchPolicy, Action< AdaptyPaywall, AdaptyError > completionHandler) |
| This method enables you to retrieve the paywall from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server. | |
| static void | GetPaywallForDefaultAudience (string placementId, string locale, Action< AdaptyPaywall, AdaptyError > completionHandler) |
| This method enables you to retrieve the paywall from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server. | |
| static void | GetOnboardingForDefaultAudience (string placementId, string locale, Action< AdaptyOnboarding, AdaptyError > completionHandler) |
| This method enables you to retrieve the onboarding from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server. | |
| static void | GetOnboardingForDefaultAudience (string placementId, AdaptyPlacementFetchPolicy fetchPolicy, Action< AdaptyOnboarding, AdaptyError > completionHandler) |
| This method enables you to retrieve the onboarding from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server. | |
| static void | GetOnboardingForDefaultAudience (string placementId, Action< AdaptyOnboarding, AdaptyError > completionHandler) |
| This method enables you to retrieve the onboarding from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server. | |
| static void | GetOnboarding (string placementId, Action< AdaptyOnboarding, AdaptyError > completionHandler) |
| Adapty allows you remotely configure onboarding screens that will be displayed in your app. | |
| static void | MakePurchase (AdaptyPaywallProduct product, Action< AdaptyPurchaseResult, AdaptyError > completionHandler) |
| Makes a purchase for the specified product. | |
| static void | ReportTransaction (string transactionId, Action< AdaptyError > completionHandler) |
| Reports a transaction to Adapty in Observer mode. | |
| static void | UpdateAttribution (Dictionary< string, dynamic > attribution, string source, Action< AdaptyError > completionHandler) |
| Updates attribution data for the profile to track user acquisition sources. | |
| static void | SetEventListener (AdaptyEventListener listener) |
| Sets the event listener for Adapty SDK events. | |
| static void | SetPaywallsEventsListener (AdaptyPaywallsEventsListener listener) |
| Sets the event listener for paywall view events. | |
| static void | SetOnboardingsEventsListener (AdaptyOnboardingsEventsListener listener) |
| Sets the event listener for onboarding view events. | |
Static Public Attributes | |
| static readonly string | SDKVersion = "3.14.0" |
| The version of the Adapty SDK. | |
Static Package Functions | |
| static void | OnMessage (string id, string json) |
Static Private Attributes | |
| static AdaptyEventListener | m_Listener |
| static AdaptyPaywallsEventsListener | m_PaywallsEventsListener |
| static AdaptyOnboardingsEventsListener | m_OnboardingsEventsListener |
The main class for interacting with the Adapty SDK.
|
static |
Use this method to initialize the Adapty SDK.
| configuration | The configuration to use for the SDK. |
| completionHandler | The action that will be called with the result. |
|
static |
Use this method to initialize the Adapty SDK.
| configurationBuilder | The builder to use for the configuration. |
| completionHandler | The action that will be called with the result. |
|
static |
Creates a web URL for the paywall that can be used to display the paywall in a web view or browser.
This is useful for platforms that don't support native paywall views or for web-based implementations. Read more at Adapty Documentation
| paywall | An AdaptyPaywall object for which to create the web URL. |
| completionHandler | The action that will be called with the result. The result contains the web URL string. |
|
static |
Creates a web URL for a specific product that can be used to display the purchase page in a web view or browser.
This is useful for platforms that don't support native purchase flows or for web-based implementations. Read more at Adapty Documentation
| product | An AdaptyPaywallProduct object for which to create the web URL. |
| completionHandler | The action that will be called with the result. The result contains the web URL string. |
|
static |
Returns the current installation status of the app.
This method provides information about whether the app installation status has been determined. Read more at Adapty Documentation
| completionHandler | The action that will be called with the result. The result contains an AdaptyInstallationStatus object. |
|
static |
Returns the current log level of the Adapty SDK.
| completionHandler | The action that will be called with the result. The result contains the current AdaptyLogLevel value. |
|
static |
Returns the version of the native Adapty SDK (iOS or Android).
This method returns the version string of the underlying native SDK, which may differ from the Unity wrapper version.
| completionHandler | The action that will be called with the result. The result contains the native SDK version string. |
|
static |
Adapty allows you remotely configure onboarding screens that will be displayed in your app.
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| completionHandler | The action that will be called with the result. |
|
static |
Adapty allows you remotely configure onboarding screens that will be displayed in your app. This way you don't have to hardcode the onboarding content and can dynamically change it or run A/B tests without app releases.
Read more at Adapty Documentation
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| locale | The identifier of the onboarding localization. |
| fetchPolicy | By default SDK will try to load data from server and will return cached data in case of failure. Otherwise use .returnCacheDataElseLoad to return cached data if it exists. |
| loadTimeout | The timeout for the onboarding loading. |
| completionHandler | The action that will be called with the result. |
|
static |
This method enables you to retrieve the onboarding from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server.
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| completionHandler | The action that will be called with the result. |
|
static |
This method enables you to retrieve the onboarding from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server.
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| fetchPolicy | By default SDK will try to load data from server and will return cached data in case of failure. Otherwise use .returnCacheDataElseLoad to return cached data if it exists. |
| completionHandler | The action that will be called with the result. |
|
static |
This method enables you to retrieve the onboarding from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server.
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| locale | The identifier of the onboarding localization. |
| completionHandler | The action that will be called with the result. |
|
static |
This method enables you to retrieve the onboarding from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server.
Read more at Adapty Documentation
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| locale | The identifier of the onboarding localization. |
| fetchPolicy | By default SDK will try to load data from server and will return cached data in case of failure. Otherwise use .returnCacheDataElseLoad to return cached data if it exists. |
| completionHandler | The action that will be called with the result. |
|
static |
Adapty allows you remotely configure the products that will be displayed in your app. This way you don’t have to hardcode the products and can dynamically change offers or run A/B tests without app releases.
Read more at Adapty Documentation
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| completionHandler | The action that will be called with the result. |
|
static |
Adapty allows you remotely configure the products that will be displayed in your app. This way you don’t have to hardcode the products and can dynamically change offers or run A/B tests without app releases.
Read more at Adapty Documentation
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| fetchPolicy | By default SDK will try to load data from server and will return cached data in case of failure. Otherwise use .returnCacheDataElseLoad to return cached data if it exists. |
| loadTimeout | The timeout for the paywall loading. |
| completionHandler | The action that will be called with the result. |
|
static |
Adapty allows you remotely configure the products that will be displayed in your app. This way you don’t have to hardcode the products and can dynamically change offers or run A/B tests without app releases.
Read more at Adapty Documentation
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| locale | The identifier of the paywall localization. |
| completionHandler | The action that will be called with the result. |
|
static |
Adapty allows you remotely configure the products that will be displayed in your app. This way you don’t have to hardcode the products and can dynamically change offers or run A/B tests without app releases.
Read more at Adapty Documentation
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| locale | The identifier of the paywall localization. |
| fetchPolicy | By default SDK will try to load data from server and will return cached data in case of failure. Otherwise use .returnCacheDataElseLoad to return cached data if it exists. |
| loadTimeout | The timeout for the paywall loading. |
| completionHandler | The action that will be called with the result. |
|
static |
This method enables you to retrieve the paywall from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server.
Read more at Adapty Documentation
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| completionHandler | The action that will be called with the result. |
|
static |
This method enables you to retrieve the paywall from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server.
Read more at Adapty Documentation
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| fetchPolicy | By default SDK will try to load data from server and will return cached data in case of failure. Otherwise use .returnCacheDataElseLoad to return cached data if it exists. |
| completionHandler | The action that will be called with the result. |
|
static |
This method enables you to retrieve the paywall from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server.
Read more at Adapty Documentation
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| locale | The identifier of the paywall localization. |
| completionHandler | The action that will be called with the result. |
|
static |
This method enables you to retrieve the paywall from the Default Audience without having to wait for the Adapty SDK to send all the user information required for segmentation to the server.
Read more at Adapty Documentation
| placementId | The identifier of the desired placement. This is the value you specified when you created the placement in the Adapty Dashboard. |
| locale | The identifier of the paywall localization. |
| fetchPolicy | By default SDK will try to load data from server and will return cached data in case of failure. Otherwise use .returnCacheDataElseLoad to return cached data if it exists. |
| completionHandler | The action that will be called with the result. |
|
static |
Fetches the products array for a given paywall.
Once you have an AdaptyPaywall, use this method to fetch the corresponding products with full pricing and subscription information. Read more at Adapty Documentation
| paywall | An AdaptyPaywall for which you want to get the products. |
| completionHandler | The action that will be called with the result. The result contains a list of AdaptyPaywallProduct objects. |
|
static |
Retrieves the current user profile with access levels, subscriptions, and other information.
The GetProfile method provides the most up-to-date result as it always tries to query the API. If for some reason (e.g., no internet connection), the Adapty SDK fails to retrieve information from the server, the data from cache will be returned. It is also important to note that the Adapty SDK updates the AdaptyProfile cache on a regular basis to keep this information as up-to-date as possible. Read more at Adapty Documentation
| completionHandler | The action that will be called with the result. The result contains an AdaptyProfile object. |
|
static |
Identifies the user with their user ID in your system.
If you don't have a user ID in the SDK configuration, you can set it later at any time with this method. The most common cases are after registration/authorization when the user switches from being an anonymous user to an authenticated user. Read more at Adapty Documentation
| customerUserId | The user identifier in your system. |
| completionHandler | The action that will be called with the result. |
|
static |
Identifies the user with their user ID and platform-specific account identifiers.
If you don't have a user ID in the SDK configuration, you can set it later at any time with this method. The most common cases are after registration/authorization when the user switches from being an anonymous user to an authenticated user. This overload allows you to provide platform-specific account identifiers for better purchase tracking. Read more at Adapty Documentation
| customerUserId | The user identifier in your system. |
| iosAppAccountToken | The UUID that you generate to associate a customer's In-App Purchase with its resulting App Store transaction (iOS only). Read more at Apple Documentation. |
| androidObfuscatedAccountId | The obfuscated account identifier (Android only). Read more at Android Documentation. |
| completionHandler | The action that will be called with the result. |
|
static |
Checks if the native Adapty SDK is activated and ready to use.
| completionHandler | The action that will be called with the result. The result contains a boolean value indicating whether the SDK is activated. |
|
static |
Logs out the current user and clears the local profile data.
After calling this method, the SDK will create a new anonymous profile for the next user session. Read more at Adapty Documentation
| completionHandler | The action that will be called with the result. |
|
static |
Call this method to notify Adapty SDK, that particular paywall was shown to user.
Adapty helps you to measure the performance of the paywalls. We automatically collect all the metrics related to purchases except for paywall views. This is because only you know when the paywall was shown to a customer. Whenever you show a paywall to your user, call .logShowPaywall(paywall) to log the event, and it will be accumulated in the paywall metrics. Read more on the Adapty Documentation
| paywall | An [AdaptyPaywall] object. |
| completionHandler | The action that will be called with the result. |
|
static |
Makes a purchase for the specified product.
This method initiates the purchase flow for a product. The result contains information about the purchase status. Read more on the Adapty Documentation
| product | An AdaptyPaywallProduct object retrieved from the paywall. |
| completionHandler | The action that will be called with the result. The result contains an AdaptyPurchaseResult object. |
|
static |
Makes a purchase for the specified product.
This method initiates the purchase flow for a product. The result contains information about the purchase status. Read more on the Adapty Documentation
| product | An AdaptyPaywallProduct object retrieved from the paywall. |
| purchaseParameters | An optional AdaptyPurchaseParameters object containing purchase configuration (e.g., subscription update parameters for Android, offer personalization, etc.). |
| completionHandler | The action that will be called with the result. The result contains an AdaptyPurchaseResult object. |
|
staticpackage |
|
static |
Opens the paywall in a web view or browser.
This method opens the web paywall URL in the default browser or web view. Read more at Adapty Documentation
| paywall | An AdaptyPaywall object to open. |
| completionHandler | The action that will be called with the result. |
|
static |
Opens the product purchase page in a web view or browser.
This method opens the web purchase URL for the specific product in the default browser or web view. Read more at Adapty Documentation
| product | An AdaptyPaywallProduct object to open. |
| completionHandler | The action that will be called with the result. |
|
static |
Presents the App Store code redemption sheet, enabling the user to redeem promotional codes.
This method is iOS-only and presents the native App Store code redemption interface. Read more at Apple Documentation
| completionHandler | The action that will be called with the result. |
|
static |
Reports a transaction to Adapty in Observer mode.
In Observer mode, Adapty SDK doesn't know where the purchase was made from. If you display products using Adapty Paywalls or A/B Tests, you can manually assign a variation to the purchase. After doing this, you'll be able to see metrics in the Adapty Dashboard. Read more at Adapty Documentation
|
static |
Reports a transaction to Adapty in Observer mode.
In Observer mode, Adapty SDK doesn't know where the purchase was made from. If you display products using Adapty Paywalls or A/B Tests, you can manually assign a variation to the purchase. After doing this, you'll be able to see metrics in the Adapty Dashboard. Read more at Adapty Documentation
| transactionId | A string identifier of your purchased transaction. For iOS, use the transaction identifier from SKPaymentTransaction. For Android, use the order ID from the purchase object (purchase.getOrderId()). |
| variationId | An optional string identifier of the variation. You can get it using the AdaptyPaywall.VariationId property of AdaptyPaywall. |
| completionHandler | The action that will be called with the result. |
|
static |
Restores previous purchases made by the user.
This method restores all previous purchases and returns an AdaptyProfile object containing information about access levels, subscriptions, and non-subscription purchases. Generally, you only need to check the access level status to determine whether the user has premium access to the app. Read more at Adapty Documentation
| completionHandler | The action that will be called with the result. The result contains an AdaptyProfile object. |
|
static |
Sets the event listener for Adapty SDK events.
| listener | The AdaptyEventListener implementation to receive events. |
|
static |
Sets fallback paywalls that will be used when there's no internet connection or when the Adapty backend is unavailable.
Adapty allows you to provide fallback paywalls that will be used when a user opens the app for the first time and there's no internet connection, or in the rare case when the Adapty backend is down and there's no cache on the device. You should pass exactly the same payload you're getting from the Adapty backend. You can copy it from the Adapty Dashboard. The fallback paywalls file should be placed in the StreamingAssets folder in your Unity project. Read more on the Adapty Documentation
| fileName | The name of the fallback paywalls file. The file should be placed in the StreamingAssets folder in your Unity project. |
| completionHandler | The action that will be called with the result. |
|
static |
|
static |
Sets integration identifiers for the profile to integrate with third-party analytics and attribution services.
Integration identifiers allow you to link Adapty profiles with external services like analytics platforms or attribution providers.
| key | The identifier key of the integration (e.g., "amplitude_user_id", "mixpanel_distinct_id"). |
| value | The value of the integration identifier. |
| completionHandler | The action that will be called with the result. |
|
static |
Sets the log level for the Adapty SDK.
Use this method to control the verbosity of SDK logging. Available levels include Error, Warn, Info, and Verbose.
| level | The AdaptyLogLevel value to set. |
| completionHandler | The action that will be called with the result. |
|
static |
Sets the event listener for onboarding view events.
| listener | The AdaptyOnboardingsEventsListener implementation to receive events. |
|
static |
Sets the event listener for paywall view events.
| listener | The AdaptyPaywallsEventsListener implementation to receive events. |
|
static |
Updates the current user's refund data collection consent for App Store purchases.
This method is iOS-only and allows you to manage user consent for refund data collection. Read more on the Adapty Documentation
| consent | A boolean value indicating whether the user gave consent for refund data collection. |
| completionHandler | The action that will be called with the result. |
|
static |
Sets the refund preference individually for the current user.
This method is iOS-only and allows you to set how refunds should be handled for a specific user. Read more on the Adapty Documentation
| refundPreference | The AdaptyRefundPreference value to set. |
| completionHandler | The action that will be called with the result. |
|
static |
Updates attribution data for the profile to track user acquisition sources.
This method allows you to send attribution data from various sources (e.g., AppsFlyer, Adjust, Branch) to Adapty. Read more on the Adapty Documentation
| attribution | A dictionary containing attribution (conversion) data from the attribution provider. |
| source | The source of attribution (e.g., "appsflyer", "adjust", "branch", "custom"). |
| completionHandler | The action that will be called with the result. |
|
static |
Updates attribution data for the profile to track user acquisition sources.
This method allows you to send attribution data from various sources (e.g., AppsFlyer, Adjust, Branch) to Adapty. Read more on the Adapty Documentation
| jsonString | A serialized JSON string containing attribution (conversion) data from the attribution provider. |
| source | The source of attribution (e.g., "appsflyer", "adjust", "branch", "custom"). |
| completionHandler | The action that will be called with the result. |
|
static |
Updates the user profile with optional attributes such as email, phone number, name, etc.
You can use these attributes to create user segments
or view them in the CRM. Use AdaptyProfileParameters.Builder to build the parameters object. Read more at Adapty Documentation
| param | An AdaptyProfileParameters object containing the attributes to update. Use AdaptyProfileParameters.Builder to build this object. |
| completionHandler | The action that will be called with the result. |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
The version of the Adapty SDK.