FMX.InAppPurchase.TCustomInAppPurchase.OnError
Delphi
property OnError: TIAPErrorEvent read FOnError write FOnError;
C++
__property TIAPErrorEvent OnError = {read=FOnError, write=FOnError};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
event | public | FMX.InAppPurchase.pas FMX.InAppPurchase.hpp |
FMX.InAppPurchase | TCustomInAppPurchase |
Description
Triggered when an error occurs while retrieving information about a list of product IDs or while purchasing a product.
This event provides the following arguments to its event handler:
Sender
is the current instance of TCustomInAppPurchase.FailureKind
may be any of the following:- TFailureKind.ProductsRequest if the error occurred while retrieving information about a list of product IDs.
- TFailureKind.Purchase if the error occurred while purchasing a product.
ErrorMessage
provides a detailed description of the error.
See Also
- FMX.InAppPurchase.TCustomInAppPurchase.QueryProducts
- FMX.InAppPurchase.TCustomInAppPurchase.PurchaseProduct