public interface InAppPurchase
Modifier and Type | Interface and Description |
---|---|
static interface |
InAppPurchase.IncompletePurchasesCallback |
static interface |
InAppPurchase.ItemListCallback |
static interface |
InAppPurchase.PurchaseCallback
Callback interface for requestPurchase
|
static interface |
InAppPurchase.PurchaseListCallback
Callback interface for queryPurchases
|
Modifier and Type | Method and Description |
---|---|
void |
processesIncompletePurchases(android.app.Activity activity,
InAppPurchase.IncompletePurchasesCallback callback)
Processes incomplete purchases.
|
void |
queryItems(android.app.Activity activity,
InAppPurchase.ItemListCallback callback)
Request all available items.
|
void |
queryPurchases(android.app.Activity activity,
InAppPurchase.PurchaseListCallback callback)
Request purchases, Purchases means the payment is successfully completed,
Does not appear in later history is consumed by 3rd party server.
|
void |
queryTCConsoleItems(android.app.Activity activity,
InAppPurchase.ItemListCallback callback)
Request all toast cloud console items.
|
void |
registerAppId(long appId)
Simple method to register app identification.
|
void |
registerMarketId(java.lang.String marketId)
Simple method to register market identification.
|
void |
registerServerPhase(InAppServer serverPhase)
Simple method to set server phase
|
void |
registerUserId(java.lang.String userId)
Simple method to register user identification.
|
void |
requestPurchase(android.app.Activity activity,
long itemId,
InAppPurchase.PurchaseCallback callback)
Starts a request for purchase process
|
void |
requestPurchase(android.app.Activity activity,
long itemId,
java.lang.String currency,
float price,
InAppPurchase.PurchaseCallback callback)
Deprecated.
|
void |
setDebugMode(boolean isDebuggable)
Enable debug mode
|
void setDebugMode(boolean isDebuggable)
isDebuggable
- isDebuggable if isDebuggable value is true, Enable to debug modevoid registerUserId(java.lang.String userId)
userId
- represent to user identification@Deprecated void requestPurchase(android.app.Activity activity, long itemId, java.lang.String currency, float price, InAppPurchase.PurchaseCallback callback)
activity
- current ActivityitemId
- represent to item idcurrency
- currencyprice
- pricecallback
- callback pass to API resultvoid requestPurchase(android.app.Activity activity, long itemId, InAppPurchase.PurchaseCallback callback)
activity
- current ActivityitemId
- represent to item idcallback
- callback pass to API resultvoid queryPurchases(android.app.Activity activity, InAppPurchase.PurchaseListCallback callback)
activity
- current ActivityAvailcallback
- callback pass to API resultvoid queryItems(android.app.Activity activity, InAppPurchase.ItemListCallback callback)
activity
- current Activitycallback
- callback pass to API resultvoid queryTCConsoleItems(android.app.Activity activity, InAppPurchase.ItemListCallback callback)
activity
- current Activitycallback
- callback pass to API resultvoid processesIncompletePurchases(android.app.Activity activity, InAppPurchase.IncompletePurchasesCallback callback)
activity
- current Activitycallback
- callback pass to API resultvoid registerAppId(long appId)
appId
- represent to app identificationvoid registerMarketId(java.lang.String marketId)
marketId
- represent to market identificationvoid registerServerPhase(InAppServer serverPhase)
serverPhase
- represent to server phase