purchasely_flutter library

Classes

PLYActionPayload
Sealed-ish hierarchy of action payloads. Dart doesn't have sealed classes in stable yet for all SDK versions; we use abstract + kind discriminator and downcast via is for type-safe access.
PLYCloseAllPayload
PLYClosePayload
PLYCommitmentInfo
Commitment installment details for an Apple "monthly subscription with N-month commitment" plan (iOS 26.4+). Apple-only.
PLYCommitmentProgress
A subscriber's progress through an Apple monthly-commitment plan (iOS 26.4+). Null on Android and other platforms — Apple-only.
PLYDynamicOffering
PLYEvent
PLYEventProperties
PLYEventPropertyCarousel
PLYEventPropertyPlan
PLYEventPropertyRedemption
What a Web2App redemption reports. REDEMPTION_CONSUMED carries token, receipt, subscriptions and purchase_context. REDEMPTION_FAILED carries token and error_code, with the reason in the top-level PLYEventProperties.error_message.
PLYEventPropertyRedemptionAttribute
One attribute a redemption restored. value stays the JSON the backend sent, so the event reports it exactly as type declares it.
PLYEventPropertyRedemptionPurchaseContext
The web journey behind a redemption. The SDK reports what it applied, not the raw response: a block the SDK does not consume is absent here too.
PLYEventPropertyRedemptionReceipt
The receipt a redemption validated.
PLYEventPropertyRedemptionSubscription
One subscription a redemption transferred, as REDEMPTION_CONSUMED reports it. The SDK reports active subscriptions and non-consumables only. An expired subscription is absent: a redemption grants, it does not report history.
PLYEventPropertySubscription
PLYInterceptorInfo
Contextual information passed to every interceptor.
PLYNavigatePayload
PLYOpenPlacementPayload
PLYOpenPresentationPayload
PLYPlan
PLYPresentation
A loaded presentation. Returned from PLYPresentationRequest.preload() and embedded in PLYPresentationOutcome.presentation at dismiss time.
PLYPresentationActions
Indirection used by PLYPresentation.display / close / back so the public API can defer to the bridge without creating a circular import.
PLYPresentationBuilder
Fluent builder for a PLYPresentationRequest.
PLYPresentationOutcome
The outcome of a presentation session, delivered when the presentation is dismissed (or fails before display).
PLYPresentationPlan
Plan summary embedded in a presentation payload.
PLYPresentationRequest
A configured presentation, ready to be preloaded or displayed.
PLYPresentationRequestActions
Indirection used by PLYPresentationRequest.preload / display so the public API can defer to the bridge without creating a circular import.
PLYPresentationSource
PLYProduct
PLYPromoOffer
PLYPurchasePayload
PLYSubscription
PLYSubscriptionOffer
PLYTransition
Display transition for a presentation (PLYPresentationRequest.display(...)).
PLYTransitionColors
Background color configuration for a transition.
PLYTransitionDimension
A single transition dimension (width or height), expressed either as a fixed size in density-independent pixels (PLYDimensionType.pixel) or as a ratio of the available screen dimension (PLYDimensionType.percentage, 0.0–1.0).
PLYWebCheckoutPayload
PLYWebRedemptionContext
What a Web2App redemption granted.
PLYWebRedemptionResult
Outcome of one Web2App redemption, delivered to the listener registered with PurchaselyBuilder.webRedemptionListener or Purchasely.addWebRedemptionListener.
Purchasely
PurchaselyBuilder
Fluent builder for Purchasely.start(). Begin the chain with PurchaselyBuilder.apiKey('…'), then chain modifiers, then call .start().
UserAttributeListener

Enums

PLYAttribute
PLYBillingPlanType
Apple billing plan type for a commitment (iOS 26.4+). Apple-only; other platforms always report PLYBillingPlanType.unspecified.
PLYCloseReason
Reason a presentation was closed when no error occurred.
PLYDataProcessingLegalBasis
PLYDataProcessingPurpose
PLYDimensionType
Unit a PLYTransitionDimension value is expressed in. Mirrors the native Android PLYDimensionType ( pixel / percentage ).
PLYEventName
Native SDK event names forwarded over the purchasely-events channel.
PLYInterceptResult
Result returned by an interceptor to the SDK.
PLYLogLevel
Log level for the SDK.
PLYPlanType
Product distribution type for a Purchasely plan.
PLYPresentationActionKind
Kind of action triggered from a presentation.
PLYPresentationSourceKind
Internal source kind used when constructing a request.
PLYPresentationType
Kind of presentation returned by the backend.
PLYPurchaseResult
Result of the purchase action triggered from a presentation.
PLYRunningMode
Running mode for the SDK.
PLYStore
Android stores supported by the SDK.
PLYStorekitVersion
Storekit transaction handling on iOS.
PLYSubscriptionSource
Store a subscription was bought from.
PLYThemeMode
PLYTransitionType
Display transition type for a presentation.
PLYUserAttributeSource
PLYUserAttributeType

Extensions

FuturePresentationDisplay on Future<PLYPresentation>
Convenience extension so a preload future can be chained directly to display: await request.preload().display(const PLYTransition.drawer(...)).
InterceptResultWire on PLYInterceptResult
PLYBillingPlanTypeWire on PLYBillingPlanType
PresentationActionKindWire on PLYPresentationActionKind

Functions

actionPayloadFromMap(PLYPresentationActionKind kind, Map? rawParameters) → PLYActionPayload?
Parse an action payload sent by the bridge.
closeReasonFromString(String? value) → PLYCloseReason?
purchaseResultFromString(String? value) → PLYPurchaseResult?

Typedefs

PLYActionInterceptorHandler = FutureOr<PLYInterceptResult> Function(PLYInterceptorInfo info, PLYActionPayload? payload)
Signature of an action interceptor handler. May return synchronously or asynchronously.
PLYWebRedemptionListener = void Function(PLYWebRedemptionResult result)
Callback signature for a settled Web2App redemption.

Exceptions / Errors

PLYPresentationError
Error returned by the native SDK when a presentation could not be displayed.