AdaptySDK 4.1.1
Loading...
Searching...
No Matches
AdaptySDK.AdaptyPurchaseParameters Class Referencesealed

The optional extras of a purchase. Both are Android only — on iOS an instance changes nothing, and Adapty.MakePurchase(AdaptyPaywallProduct, System.Action<AdaptyPurchaseResult, AdaptyError>) without one is the same call. More...

Public Member Functions

 AdaptyPurchaseParameters (AdaptySubscriptionUpdateParameters subscriptionUpdateParams=null, bool? isOfferPersonalized=null)
 Builds the extras for one purchase. Both are Android only.
override string ToString ()
 A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.

Public Attributes

readonly AdaptySubscriptionUpdateParameters SubscriptionUpdateParams
 Android only. Makes the purchase replace a subscription the user already has. Null for an ordinary purchase.
readonly? bool IsOfferPersonalized
 Android only. Declares to Google Play that the price shown was personalised to this user, which some jurisdictions require disclosing. Null leaves the native default.

Detailed Description

The optional extras of a purchase. Both are Android only — on iOS an instance changes nothing, and Adapty.MakePurchase(AdaptyPaywallProduct, System.Action<AdaptyPurchaseResult, AdaptyError>) without one is the same call.

Constructor & Destructor Documentation

◆ AdaptyPurchaseParameters()

AdaptySDK.AdaptyPurchaseParameters.AdaptyPurchaseParameters ( AdaptySubscriptionUpdateParameters subscriptionUpdateParams = null,
bool? isOfferPersonalized = null )

Builds the extras for one purchase. Both are Android only.

Parameters
subscriptionUpdateParamsAndroid only. The subscription this purchase replaces, or null.
isOfferPersonalizedAndroid only. Whether the price shown was personalised, or null.

Member Function Documentation

◆ ToString()

override string AdaptySDK.AdaptyPurchaseParameters.ToString ( )

A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.

Member Data Documentation

◆ IsOfferPersonalized

readonly? bool AdaptySDK.AdaptyPurchaseParameters.IsOfferPersonalized

Android only. Declares to Google Play that the price shown was personalised to this user, which some jurisdictions require disclosing. Null leaves the native default.

◆ SubscriptionUpdateParams

readonly AdaptySubscriptionUpdateParameters AdaptySDK.AdaptyPurchaseParameters.SubscriptionUpdateParams

Android only. Makes the purchase replace a subscription the user already has. Null for an ordinary purchase.


The documentation for this class was generated from the following file: