Package com.badlogic.gdx.pay
Class PurchaseManagerConfig
java.lang.Object
com.badlogic.gdx.pay.PurchaseManagerConfig
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddStoreParam(String storeName, Object param) Adds a parameter for a store.getOffer(int index) intgetOfferForStore(String storeName, String identifierForStore) getStoreParam(String storeName) Returns parameters for a store.booleanhasAnyOfferWithType(OfferType offerType)
-
Field Details
-
STORE_NAME_ANDROID_GOOGLE
- See Also:
-
STORE_NAME_ANDROID_AMAZON
- See Also:
-
STORE_NAME_ANDROID_HUAWEI
- See Also:
-
STORE_NAME_ANDROID_SAMSUNG
- See Also:
-
STORE_NAME_ANDROID_NOKIA
- See Also:
-
STORE_NAME_ANDROID_SLIDEME
- See Also:
-
STORE_NAME_ANDROID_APTOIDE
- See Also:
-
STORE_NAME_ANDROID_APPLAND
- See Also:
-
STORE_NAME_ANDROID_YANDEX
- See Also:
-
STORE_NAME_IOS_APPLE
- See Also:
-
STORE_NAME_DESKTOP_APPLE
- See Also:
-
STORE_NAME_DESKTOP_STEAM
- See Also:
-
STORE_NAME_DESKTOP_WINDOWS
- See Also:
-
STORE_NAME_GWT_GOOGLEWALLET
- See Also:
-
-
Constructor Details
-
PurchaseManagerConfig
public PurchaseManagerConfig()
-
-
Method Details
-
addOffer
-
getOffer
-
hasAnyOfferWithType
-
getOfferForStore
-
getOffer
-
getOfferCount
public int getOfferCount() -
addStoreParam
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
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.
-