|
AdaptySDK 4.1.2
|
A lightweight identifier used when addressing a specific product across platforms. More...
Public Member Functions | |
| AdaptyProductIdentifier (string vendorProductId, string adaptyProductId, string basePlanId) | |
| Builds an identifier for a product you name yourself, rather than one taken from a flow. | |
| override bool | Equals (object obj) |
| Two identifiers are equal when all three of their values are. | |
| override int | GetHashCode () |
| Hashes the three values Equals compares, so an identifier works as a dictionary key. | |
| 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 string | VendorProductId |
| The product id in App Store Connect or the Google Play Console. | |
| readonly string | BasePlanId |
| Android only. The Google Play base plan. Null on iOS. | |
A lightweight identifier used when addressing a specific product across platforms.
| AdaptySDK.AdaptyProductIdentifier.AdaptyProductIdentifier | ( | string | vendorProductId, |
| string | adaptyProductId, | ||
| string | basePlanId ) |
Builds an identifier for a product you name yourself, rather than one taken from a flow.
| vendorProductId | The product id in App Store Connect or the Google Play Console. |
| adaptyProductId | The product's id in Adapty, as AdaptyPaywallProduct.AdaptyProductId carries it. |
| basePlanId | Android only. The Google Play base plan, or null for none. |
| override bool AdaptySDK.AdaptyProductIdentifier.Equals | ( | object | obj | ) |
Two identifiers are equal when all three of their values are.
Value equality, so an identifier can be used as a dictionary key — for example in AdaptyUICreateFlowViewParameters.SetProductPurchaseParameters(System.Collections.Generic.IReadOnlyDictionary<AdaptyProductIdentifier, AdaptyPurchaseParameters>), where the caller builds the keys from a flow rather than reusing the SDK's instances.
| override int AdaptySDK.AdaptyProductIdentifier.GetHashCode | ( | ) |
Hashes the three values Equals compares, so an identifier works as a dictionary key.
| override string AdaptySDK.AdaptyProductIdentifier.ToString | ( | ) |
A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.
| readonly string AdaptySDK.AdaptyProductIdentifier.BasePlanId |
Android only. The Google Play base plan. Null on iOS.
Empty is the same as none: the contract leaves the key out rather than sending it empty, so the constructor normalizes it and NullValueHandling drops it.
| readonly string AdaptySDK.AdaptyProductIdentifier.VendorProductId |
The product id in App Store Connect or the Google Play Console.