ExamineAppProducts()
Syntax
Result = ExamineAppProducts()Description
Start to examine the products previously fetched with FetchAppProducts(). To step through all products, use NextAppProduct().
Parameters
None.
Return value
Nonzero if the examination is successful, zero otherwise.
Example
Procedure OnFetchAppProducts(Success) If Success If ExamineAppProducts() While NextAppProduct() Debug "id: " + AppProductId() + ", name: " + AppProductName() + ", price: " + AppProductPrice() Wend Else Debug "ExamineAppProducts() failed." EndIf Else Debug "FetchAppProducts() failed." EndIf EndProcedure Procedure OnPurchaseAppProduct(State, ProductId$) Debug "Product: " + ProductId$ + ", state : " + State EndProcedure RegisterAppProduct("gems", @OnPurchaseAppProduct()) ; can be purchased more than once RegisterAppProduct("helmet", @OnPurchaseAppProduct(), #PB_Product_NonConsumable) ; can be purchased only once FetchAppProducts(@OnFetchAppProducts())
See Also
NextAppProduct()
Supported OS
Android, iOS