Adapty FlutterFlow plugin actions and data types
Custom Actions
Below are Adapty methods delivered to FlutterFlow with Adapty plugin. They can be used as custom actions in FlutterFlow.
| Custom Action | Description | Action Arguments | Adapty Data Types - Action Output Variable |
|---|---|---|---|
| activate | Initializes the Adapty SDK | None | |
getPaywall | Retrieves a paywall. It does not return paywall products. Use the getPaywallProducts action to get the actual products | AdaptyGetPaywallResult | |
getPaywallProducts | Returns a list of actual paywall products | AdaptyPaywall | AdaptyGetProductsResult |
getProductsIntroductoryOfferEligibility | Checks if the user qualifies for an introductory iOS subscription offer | AdaptyPaywallProduct | AdaptyGetIntroEligibilitiesResult |
makePurchase | Completes a purchase and unlocks content. If a paywall has a promotional offer, Adapty automatically applies it at checkout |
| AdaptyMakePurchaseResult |
getProfile | Retrieves the current app user's profile. This allows you to set access levels and other parameters If it fails (e.g., due to no internet), cached data will be returned. Adapty regularly updates the profile cache to ensure the information stays as current as possible | None | AdaptyGetProfileResult |
| updateProfile | Changes optional attributes of the current user profile such as email, phone number, etc. You can later use attributes to create user segments or just view them in CRM | The ID and any parameters that need to be updated for the AdaptyProfile | AdaptyError (Optional) |
| restorePurchases | Restores any purchases the user has made | None | AdaptyGetProfileResult |
| logShowPaywall | Logs when a specific paywall is shown to the user | AdaptyPaywall | AdaptyError (Optional) |
| identify | Identifies the user using your system's customerUserId | customerUserId | AdaptyError (Optional) |
| logout | Logs the current user out of your app | None | AdaptyError (Optional) |
| presentCodeRedemptionSheet | Displays a sheet that allows users to redeem codes (iOS only) | None | None |
Data Types
Adapty data types (collections of data values) delivered to FlutterFlow with Adapty plugin.
AdaptyAccessLevel
Information about the user's access level.
| Field Name | Type | Description |
|---|---|---|
| activatedAt | DateTime | The time when this access level was activated |
| activeIntroductoryOfferType | String | The type of an active introductory offer. If set, it means an offer was applied during this subscription period |
| activePromotionalOfferId | String | The ID of an active promotional offer (purchased from iOS) |
| activePromotionalOfferType | String | The type of an active promotional offer (purchased from iOS). If set, it means an offer was applied during this subscription period |
| billingIssueDetectedAt | DateTime | The time when a billing issue was detected. The subscription can still be active. Set to null if payment is successfully processed |
| cancellationReason | String | The reason why the subscription was canceled |
| expiresAt | DateTime | The access level expiration time (could be in the past or not set for lifetime access) |
| id | String | The identifier of the access level |
| isActive | Boolean | True if this access level is active. Generally, you can check this property to determine if a user has an access to premium features |
| isInGracePeriod | Boolean | True if this auto-renewable subscription is in the grace period |
| isLifetime | Boolean | True if this access level is active for a lifetime (no expiration date) |
| isRefund | Boolean | True if this purchase was refunded |
| offerId | String | The ID of an active promotional offer (purchased from Android) |
| renewedAt | DateTime | The time when the access level was last renewed |
| startsAt | DateTime | The start time of this access level (could be in the future) |
| store | String | The store where the purchase was made |
| unsubscribedAt | DateTime | The time when auto-renewal was turned off for the subscription. The subscription can still be active. If not set, the user reactivated the subscription |
| vendorProductId | String | The product ID from the store that unlocked this access level |
| willRenew | Boolean | True if this auto-renewable subscription is set to renew |
AdaptyAccessLevelIdentifiers
This struct is intended to replace key-value pair for Map<String, AdaptyAccessLevel AdaptyAccessLevel.
| Field Name | Type | Description |
|---|---|---|
| accessLevelIdentifier | String | The ID of the access level |
| accessLevel | Data (AdaptyAccessLevel) | The associated AdaptyAccessLevel |
AdaptyCustomDoubleAttribute
Information on custom double attributes defined for the user.
| Field Name | Type | Description |
|---|---|---|
| key | String | The ID of the custom double attribute |
| value | Double | The value of the custom double attribute |
AdaptyCustomStringAttribute
Information on custom string attributes defined for the user.
| Field Name | Type | Description |
|---|---|---|
| key | String | The ID of the custom string attribute |
| value | String | The value of the custom string attribute |
AdaptyError
Contains details about an error. For a complete list of error codes, refer to Flutter, React Native, Unity - Handle errors.
| Field Name | Type | Description |
|---|---|---|
| errorMessage | String | A human-readable description of the error |
| errorCode | Integer | Numeric code identifying the error |