Class PurchaseManagerConfig

java.lang.Object
com.badlogic.gdx.pay.PurchaseManagerConfig

public class PurchaseManagerConfig extends Object
This configuration is set in your "core"-project and will be passed on to the active InApp store automatically. The configuration for offers can be updated on the fly, e.g. by downloading the lastest offers from your server if you have one setup.
  • Field Details

  • Constructor Details

    • PurchaseManagerConfig

      public PurchaseManagerConfig()
  • Method Details

    • addOffer

      public void addOffer(Offer offer)
    • getOffer

      public Offer getOffer(String identifier)
    • hasAnyOfferWithType

      public boolean hasAnyOfferWithType(OfferType offerType)
    • getOfferForStore

      public Offer getOfferForStore(String storeName, String identifierForStore)
    • getOffer

      public Offer getOffer(int index)
    • getOfferCount

      public int getOfferCount()
    • addStoreParam

      public void addStoreParam(String storeName, Object param)
      Adds a parameter for a store.
      Parameters:
      storeName - The name of the store.
      param - The store parameters to use. This could be a string or byte-array etc. depending on what that store needs to initialize.
    • getStoreParam

      public Object getStoreParam(String storeName)
      Returns parameters for a store.
      Parameters:
      storeName - The name of the store.
      Returns:
      The store parameters or null if there where none. This could be a string or byte-array etc. depending on what that store needs to initialize.