Class IOSInAppBillingService

All Implemented Interfaces:

public class IOSInAppBillingService extends Object implements InAppBillingService
  • Property Details

  • Constructor Details

    • IOSInAppBillingService

      public IOSInAppBillingService()
  • Method Details

    • isSupported

      public boolean isSupported()
      Description copied from interface: InAppBillingService
      Returns true if the device supports in-app billing.
      Specified by:
      isSupported in interface InAppBillingService
      True if the device supports in-app billing.
    • setQueryResultListener

      public void setQueryResultListener(InAppBillingQueryResultListener listener)
      Description copied from interface: InAppBillingService
      Set a query listener to listen for results of asynchronous queries of the registered in-app products.
      Specified by:
      setQueryResultListener in interface InAppBillingService
      listener - the query listener to set
    • setRegisteredProducts

      public void setRegisteredProducts(List<Product> registeredProducts)
      Description copied from interface: InAppBillingService
      Updates the list of available products that are configured in the in-app product sections of the application configuration for iOS and Android.
      Specified by:
      setRegisteredProducts in interface InAppBillingService
      registeredProducts - a list of available in-app products
    • initialize

      public void initialize(String androidPublicKey, List<Product> registeredProducts)
      Description copied from interface: InAppBillingService
      Correctly initialize the In-App Billing service on the device. This makes sure that everything is in place before you can start interacting with the methods that deal with the actual in-app products.

      When initialization completed successfully, a query will be triggered to fetch the initial purchase details for each registered in-app product. You should set a query listener to act upon the results of that query.

      Specified by:
      initialize in interface InAppBillingService
      androidPublicKey - the license key of your Android application which can be found in the Google Play developer console.
      registeredProducts - a list of available in-app products that are configured in your application configuration for iOS and Android
    • isReady

      public boolean isReady()
      Gets the value of the property ready.
      Specified by:
      isReady in interface InAppBillingService
      Property description:
    • readyProperty

      public readyProperty()
      Specified by:
      readyProperty in interface InAppBillingService
      See Also:
    • fetchProductDetails

      public javafx.concurrent.Worker<List<Product>> fetchProductDetails()
      Description copied from interface: InAppBillingService
      Retrieves the details for the current list of available in-app products. In case a product from the list of registered products could not be queried, they will not be listed in the returned list. This method must be called to get the details of each registered product, like the title, description and localised price and currency. You can use these details to build up your UI.
      Specified by:
      fetchProductDetails in interface InAppBillingService
      A list of products for which the details could be fetched, wrapped in a Worker.
    • order

      public javafx.concurrent.Worker<ProductOrder> order(Product product)
      Description copied from interface: InAppBillingService
      Place a new order for the specified product. The returned Worker can be used to determine if the order was successful.
      Specified by:
      order in interface InAppBillingService
      product - the product to place an order for
      A ProductOrder containing details about the processed order, wrapped in a Worker.
    • finish

      public javafx.concurrent.Worker<Product> finish(ProductOrder productOrder)
      Description copied from interface: InAppBillingService
      Finish a product order for a consumable product. The product order will not have been processed (and no money will have been transferred) until the order is finished.
      Specified by:
      finish in interface InAppBillingService
      productOrder - the product order to finish
      The product that was ordered with in the provided ProductOrder with updated details, wrapped in a Worker.