|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IBillingObserver
| Method Summary | |
|---|---|
void |
onCheckBillingSupportedResponse(boolean supported)
Called each time |
void |
onErrorRestoreTransactions(ResponseCode responseCode)
Called when a restore transactions request ended with a server error. |
void |
onPurchaseIntentFailure(String productId,
ResponseCode responseCode)
Called when purchase intent was not sent due to billing service error |
void |
onPurchaseIntentOK(String productId,
android.app.PendingIntent purchaseIntent)
Called after requesting the purchase of the specified item. |
void |
onPurchaseStateChanged(String productId,
Transaction.PurchaseState state)
Called when the specified item is purchased, cancelled or refunded. |
void |
onRequestPurchaseResponse(String productId,
ResponseCode response)
Called with the response for the purchase request of the specified item. |
void |
onTransactionsRestored()
Called when a restore transactions request has been successfully received by the server. |
| Method Detail |
|---|
void onCheckBillingSupportedResponse(boolean supported)
supported - if true, in-app billing is supported. Otherwise, it isn't.BillingController.checkBillingSupported(android.content.Context)
void onPurchaseIntentOK(@Nonnull
String productId,
@Nonnull
android.app.PendingIntent purchaseIntent)
productId - id of the item whose purchase was requested.purchaseIntent - a purchase pending intent for the specified item.BillingController.requestPurchase(android.content.Context, String,
boolean)
void onPurchaseIntentFailure(@Nonnull
String productId,
@Nonnull
ResponseCode responseCode)
productId - id of the item whose purchase was requestedresponseCode - one of the failures response codes from billing service
void onPurchaseStateChanged(@Nonnull
String productId,
@Nonnull
Transaction.PurchaseState state)
productId - id of the item whose purchase state has changed.state - purchase state of the specified item.
void onRequestPurchaseResponse(@Nonnull
String productId,
@Nonnull
ResponseCode response)
productId - id of the item whose purchase was requestedresponse - response of the purchase requestvoid onTransactionsRestored()
void onErrorRestoreTransactions(@Nonnull
ResponseCode responseCode)
responseCode - response code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||