Enum Class OfferType

java.lang.Object
java.lang.Enum<OfferType>
com.badlogic.gdx.pay.OfferType
All Implemented Interfaces:
Serializable, Comparable<OfferType>, Constable

public enum OfferType extends Enum<OfferType>
An offer type for a product that can be purchased.
  • Enum Constant Details

    • CONSUMABLE

      public static final OfferType CONSUMABLE
      A consumable can be purchased multiple times and diminishes once used (e.g. virtual money, coins).
    • ENTITLEMENT

      public static final OfferType ENTITLEMENT
      An entitlement can only be purchased once (e.g. one time upgrade). Basically a non-consumable.
    • SUBSCRIPTION

      public static final OfferType SUBSCRIPTION
      Subscriptions are entitlements that are bound by a period of time, but renew automatically at the end of the time period.
  • Method Details

    • values

      public static OfferType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OfferType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null