|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.robotmedia.billing.helper.AbstractBillingObserver
net.robotmedia.billing.helper.DefaultBillingObserver
public class DefaultBillingObserver
User: serso Date: 5/14/12 Time: 4:16 PM
| Field Summary |
|---|
| Fields inherited from class net.robotmedia.billing.helper.AbstractBillingObserver |
|---|
context, KEY_TRANSACTIONS_RESTORED |
| Constructor Summary | |
|---|---|
DefaultBillingObserver(android.content.Context context,
IBillingObserver nestedBillingObserver)
|
|
| 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. |
| Methods inherited from class net.robotmedia.billing.helper.AbstractBillingObserver |
|---|
isTransactionsRestored, isTransactionsRestored |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultBillingObserver(@Nonnull
android.content.Context context,
@Nullable
IBillingObserver nestedBillingObserver)
| Method Detail |
|---|
public void onCheckBillingSupportedResponse(boolean supported)
IBillingObserver
supported - if true, in-app billing is supported. Otherwise, it isn't.BillingController.checkBillingSupported(android.content.Context)
public void onPurchaseIntentOK(@Nonnull
String productId,
@Nonnull
android.app.PendingIntent purchaseIntent)
AbstractBillingObserver
onPurchaseIntentOK in interface IBillingObserveronPurchaseIntentOK in class AbstractBillingObserverproductId - id of the item whose purchase was requested.purchaseIntent - a purchase pending intent for the specified item.BillingController.requestPurchase(android.content.Context, String,
boolean)
public void onPurchaseIntentFailure(@Nonnull
String productId,
@Nonnull
ResponseCode responseCode)
IBillingObserver
productId - id of the item whose purchase was requestedresponseCode - one of the failures response codes from billing service
public void onPurchaseStateChanged(@Nonnull
String productId,
@Nonnull
Transaction.PurchaseState state)
IBillingObserver
productId - id of the item whose purchase state has changed.state - purchase state of the specified item.
public void onRequestPurchaseResponse(@Nonnull
String productId,
@Nonnull
ResponseCode response)
IBillingObserver
productId - id of the item whose purchase was requestedresponse - response of the purchase requestpublic void onTransactionsRestored()
IBillingObserver
onTransactionsRestored in interface IBillingObserveronTransactionsRestored in class AbstractBillingObserver
public void onErrorRestoreTransactions(@Nonnull
ResponseCode responseCode)
IBillingObserver
onErrorRestoreTransactions in interface IBillingObserveronErrorRestoreTransactions in class AbstractBillingObserverresponseCode - response code
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||