FMX.InAppPurchase.TProduct.Create
Delphi
constructor Create(const ProductID: string; Price: Double; const LocalizedPrice, LocalizedTitle, LocalizedDescription: string; Downloadable: Boolean; const DownloadContentLengths: TDownloadLengths; DownloadContentVersion: string);
C++
__fastcall TProduct(const System::UnicodeString ProductID, double Price, const System::UnicodeString LocalizedPrice, const System::UnicodeString LocalizedTitle, const System::UnicodeString LocalizedDescription, bool Downloadable, const TDownloadLengths DownloadContentLengths, System::UnicodeString DownloadContentVersion);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | FMX.InAppPurchase.pas FMX.InAppPurchase.hpp |
FMX.InAppPurchase | TProduct |
Description
Creates an instance of TProduct with the specified product data.
- Note: When you use TInAppPurchase, you do not create instances of TProduct. Instead, you request and obtain them from your in-app payment service. See TProduct for more information.
All the parameters that this constructor expects are stored into properties of the resulting instance of TProduct:
Parameter | Property |
---|---|
ProductID
|
ProductID |
Price
|
Price |
LocalizedPrice
|
LocalizedPrice |
LocalizedTitle
|
LocalizedTitle |
LocalizedDescription
|
LocalizedDescription |
Downloadable
|
Downloadable |
DownloadContentLengths
|
DownloadContentLengths |
DownloadContentVersion
|
DownloadContentVersion |
Instances of TProduct are read-only. You cannot change the properties of a TProduct once you have created it.