public class InAppBillingClient
extends java.lang.Object
The InAppBillingClient handles the retrieval of products that were created for your mobile application in the Android and iOS marketplaces. The client works very closely with the In-App Billing service in Gluon CloudLink. Make sure that you have properly set up everything on the In-App Billing page in Gluon Dashboard before you start testing the In-App Billing client on your device.
Note: The InAppBillingClient uses the InAppBillingService
for handling the platform specific
details of in-app billing. Therefor, make sure that the in-app-billing plugin has been enabled in your Gluon Mobile
application build configuration:
jfxmobile { downConfig { plugins = 'in-app-billing', ... } }
Constructor and Description |
---|
InAppBillingClient() |
Modifier and Type | Method and Description |
---|---|
javafx.collections.ObservableList<ProductOrder> |
getProductOrders()
Returns a list of product orders that were made for the active account on the device.
|
javafx.collections.ObservableList<Product> |
getProducts()
Returns a list of products with their details.
|
InAppBillingService |
getService() |
void |
registerProducts()
Registers the products that are configured for your Gluon Mobile application in Gluon CloudLink.
|
public void registerProducts()
list of products
and already
purchased product orders
onto the mobile device.public InAppBillingService getService()
public javafx.collections.ObservableList<Product> getProducts()
registerProducts()
has been made.public javafx.collections.ObservableList<ProductOrder> getProductOrders()
registerProducts()
has been made.