Adapty Resources
Custom Actions
All Adapty actions are custom actions for 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 | AdaptyPaywall | |
getPaywallProducts | Returns a list of actual paywall products | AdaptyPaywall | |
getProductsIntroductoryOfferEligibility | Checks if the user qualifies for an introductory iOS subscription offer | AdaptyPaywallProduct | AdaptyEligibilityEnum |
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 | AdaptyProfile |
identify | Identifies the user using your system's customerUserId | customerUserId | None |
logShowPaywall | Logs when a specific paywall is shown to the user | AdaptyPaywall | None |
logout | Logs the current user out of your app | None | None |
makePurchase | Completes a purchase and unlocks content. If a paywall has a promotional offer, Adapty automatically applies it at checkout |
| AdaptyProfile |
presentCodeRedemptionSheet | Displays a sheet that allows users to redeem codes (iOS only) | None | None |
restorePurchases | Restores any purchases the user has made | None | AdaptyProfile |
Data Types
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 not `null, it means an offer was applied during this subscription period |
activePromotionalOfferId | String | The ID of an active promotional offer (use for iOS) |
activePromotionalOfferType | String | The type of an active promotional offer (use for iOS). If not null, 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 null for lifetime access) |
id | String | Text |
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 (use for 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. Null if 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
Field name | Type | Description |
---|---|---|
accessLevelIdentifier | String | The ID of the access level |
accessLevel | Data (AdaptyAccessLevel) | Contains the associated AdaptyAccessLevel |
AdaptyCustomDoubleAttribute
Field name | Type | Description |
---|---|---|
key | String | The ID of the custom double attribute |
value | Double | Value of the custom double attribute |
AdaptyCustomStringAttribute
Field name | Type | Description |
---|---|---|
key | String | The ID of the custom string attribute |
value | String | Value of the custom string attribute |