Skip to content

Commit

Permalink
Merge branch 'FlutterFlow'
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutik-sun committed Sep 16, 2024
2 parents 74d6c48 + a52c1aa commit 9946fb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion versioned_docs/version-2.0/ff-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ Before proceeding, make sure you've done the following:
3. And finally added the Adapty Plugin as a dependency in your FlutterFlow project as described below.

<details>
<summary>Add the Adapty Plugin as a dependency (click to expand)</summary>
<summary>Add the Adapty plugin as a dependency (click to expand)</summary>

1. In your project, click **Settings and Integrations** from the left menu.
<Zoom>
<img src={require('./FF_img/main_settings.png').default}
Expand Down
17 changes: 8 additions & 9 deletions versioned_docs/version-2.0/ff-resources.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Afapty Resources"
title: "Adapty Resources"
description: ""
metadataTitle: ""
---
Expand All @@ -9,17 +9,16 @@ metadataTitle: ""
| Custom Action | Description | Action Arguments | Adapty Data Types - Action Output Variable |
|---|----|--------|----
| activate | Use this action to initialize the Adapty SDK. | None |
| getPaywall | Use this action to get the paywall. It does not return paywall products. Use the `getPaywallProducts` action to receive the actual paywall products. | [Placement_ID](placements) | |
| getPaywallProducts | Use this action to receive actual payall products list. | [AdaptyPaywall](paywalls) | |
| getPaywall | Use this action to get the paywall. It does not return paywall products. Use the `getPaywallProducts` action to receive the actual paywall products. | <ul><li>[Placement_ID](placements)</li><li>[Locale](localizations-and-locale-codes)</li></ul> | [AdaptyPaywall](paywalls) |
| getPaywallProducts | Use this action to receive actual paywall products list. | [AdaptyPaywall](paywalls) | |
| getProductsIntroductoryOfferEligibility | Use this action to check if the user qualifies for an introductory offer for an iOS subscription | [AdaptyPaywallProduct](product) | AdaptyEligibility <ul><li> **eligible**: The user is eligible for an intro offer, it is safe to reflect this info in your UI. </li><li> **ineligible**: The user is not eligible to get any offer, you shouldn't present it in your UI. </li><li> **notApplicable**: This product is not configured to have an offer. </li></ul>| |
| getProfile | <p>Get the current app user profile. Allows you to define the level of access, as well as other parameters.</p><p>The getProfile action 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 fails to retrieve information from the server, the data from cache will be returned. It is also important to note that the Adapty updates AdaptyProfile cache on a regular basis, in order to keep this information as up-to-date as possible.</p> | None| AdaptyProfile|
| identify | <p>Use this action for identifying user with it’s user ID in your system.</p><p>If you don’t have a user ID on SDK activation, you can set it later at any time with .identify() action. The most common cases are after registration/authorization when the user switches from being an anonymous user to an authenticated user.</p> | customerUserId | None |
| getProfile | <p>Get the current app user profile. Allows you to define the level of access, as well as other parameters.</p><p>The getProfile action 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 fails to retrieve information from the server, the data from cache will be returned. It is also important to note that the Adapty updates AdaptyProfile cache on a regular basis, in order to keep this information as up-to-date as possible.</p> | None| [AdaptyProfile](https://pub.dev/documentation/adapty_flutter/latest/adapty_flutter/AdaptyProfile-class.html) | customerUserId
| identify | <p>Use this action for identifying user with it’s user ID in your system (`customerUserId`).</p><p>If you don’t have a user ID on SDK activation, you can set it later at any time with .identify() action. The most common cases are after registration/authorization when the user switches from being an anonymous user to an authenticated user.</p> | customerUserId | None |
| logShowPaywall | <p>Use this action to notify Adapty SDK, that particular paywall was shown to user.</p><p> 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.</p> | [AdaptyPaywall](paywalls) | None |
| logout | Use this action to log out the current user from your app | None | None|
| makePurchase | <p>Use this action to complete a purchase and unlock the desired content. This action serves as the gateway for users to engage with the paywalls and proceed with their desired transactions.</p><p>If your paywall has an active promotional offer for the product a user is trying to buy, Adapty will automatically apply it at the time of purchase.</p>| <ul><li> **product**: an AdaptyPaywallProduct object retrieved from the paywall.</li><li> **subscriptionUpdateParams**: an AdaptySubscriptionUpdateParameters object used to upgrade or downgrade a subscription (use for Android).</li><li>**isOfferPersonalized**: Specifies whether the offer is personalized to the buyer (use for Android).</li></ul> | AdaptyProfile |
| presentCodeRedemptionSheet | Use this action to have StoreKit present a sheet enabling the user to redeem codes provided by your app. | Text | |
| restorePurchases | None | None | |
| updateProfile | AdaptyProfileParameters | | |
| makePurchase | <p>Use this action to complete a purchase and unlock the desired content. This action serves as the gateway for users to engage with the paywalls and proceed with their desired transactions.</p><p>If your paywall has an active promotional offer for the product a user is trying to buy, Adapty will automatically apply it at the time of purchase.</p>| <ul><li> **product**: an AdaptyPaywallProduct object retrieved from the paywall.</li><li> **subscriptionUpdateParams**: an AdaptySubscriptionUpdateParameters object used to upgrade or downgrade a subscription (use for Android).</li><li>**isOfferPersonalized**: Specifies whether the offer is personalized to the buyer (use for Android).</li></ul> | [AdaptyProfile](https://pub.dev/documentation/adapty_flutter/latest/adapty_flutter/AdaptyProfile-class.html) |
| presentCodeRedemptionSheet | Use this action to have StoreKit present a sheet enabling the user to redeem codes provided by your app (use for iOS). | None | None |
| restorePurchases | Use this action to restore user's purchases if any. | None | [AdaptyProfile](https://pub.dev/documentation/adapty_flutter/latest/adapty_flutter/AdaptyProfile-class.html) |



0 comments on commit 9946fb2

Please sign in to comment.