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);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
constructor | public | FMX.InAppPurchase.pas FMX.InAppPurchase.hpp |
FMX.InAppPurchase | TProduct |
Description
Crée une instance de TProduct avec les données du produit spécifié.
- Remarque : Lors de l'utilisation de TInAppPurchase, vous ne créez pas d'instances de TProduct. A la place, vous les demandez et les obtenez à partir du service de paiement in-app. Voir TProduct pour de plus amples informations.
Tous les paramètres attendus par ce constructeur sont stockés dans les propriétés de l'instance résultante de TProduct :
Paramètre | Propriété |
---|---|
ProductID
|
ProductID |
Price
|
Price |
LocalizedPrice
|
LocalizedPrice |
LocalizedTitle
|
LocalizedTitle |
LocalizedDescription
|
LocalizedDescription |
Downloadable
|
Downloadable |
DownloadContentLengths
|
DownloadContentLengths |
DownloadContentVersion
|
DownloadContentVersion |
Les instances de TProduct sont en lecture seule. Vous ne pouvez pas changer les propriétés d'un TProduct une fois que vous l'avez créé.