From a52c1aaeabd89064c6403e943d94d50e177049c4 Mon Sep 17 00:00:00 2001 From: Liudmila Nemkova Date: Mon, 16 Sep 2024 16:17:20 +0200 Subject: [PATCH] Polishing for publication --- .../version-2.0/ff-getting-started.md | 3 ++- versioned_docs/version-2.0/ff-resources.md | 17 ++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/versioned_docs/version-2.0/ff-getting-started.md b/versioned_docs/version-2.0/ff-getting-started.md index d91b38a..3d7c57e 100644 --- a/versioned_docs/version-2.0/ff-getting-started.md +++ b/versioned_docs/version-2.0/ff-getting-started.md @@ -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.
- Add the Adapty Plugin as a dependency (click to expand) + Add the Adapty plugin as a dependency (click to expand) + 1. In your project, click **Settings and Integrations** from the left menu.
  • [Placement_ID](placements)
  • [Locale](localizations-and-locale-codes)
  • | [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
    • **eligible**: The user is eligible for an intro offer, it is safe to reflect this info in your UI.
    • **ineligible**: The user is not eligible to get any offer, you shouldn't present it in your UI.
    • **notApplicable**: This product is not configured to have an offer.
    | | -| getProfile |

    Get the current app user profile. Allows you to define the level of access, as well as other parameters.

    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.

    | None| AdaptyProfile| -| identify |

    Use this action for identifying user with it’s user ID in your system.

    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.

    | customerUserId | None | +| getProfile |

    Get the current app user profile. Allows you to define the level of access, as well as other parameters.

    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.

    | None| [AdaptyProfile](https://pub.dev/documentation/adapty_flutter/latest/adapty_flutter/AdaptyProfile-class.html) | customerUserId +| identify |

    Use this action for identifying user with it’s user ID in your system (`customerUserId`).

    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.

    | customerUserId | None | | logShowPaywall |

    Use this action 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.

    | [AdaptyPaywall](paywalls) | None | | logout | Use this action to log out the current user from your app | None | None| -| makePurchase |

    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.

    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.

    |
    • **product**: an AdaptyPaywallProduct object retrieved from the paywall.
    • **subscriptionUpdateParams**: an AdaptySubscriptionUpdateParameters object used to upgrade or downgrade a subscription (use for Android).
    • **isOfferPersonalized**: Specifies whether the offer is personalized to the buyer (use for Android).
    | 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 |

    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.

    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.

    |
    • **product**: an AdaptyPaywallProduct object retrieved from the paywall.
    • **subscriptionUpdateParams**: an AdaptySubscriptionUpdateParameters object used to upgrade or downgrade a subscription (use for Android).
    • **isOfferPersonalized**: Specifies whether the offer is personalized to the buyer (use for Android).
    | [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) |