Méthode | Description | |
---|---|---|
BuyPageIntentResponse ( Android.App.PendingIntent pendingIntent, Android.Content.Intent intent ) : void |
Starts a new activity for the user to buy an item for sale. This method forwards the intent on to the PurchaseObserver (if it exists) because we need to start the activity on the activity stack of the application.
|
|
CheckBillingSupportedResponse ( bool supported, string type ) : void |
Notifies the application of the availability of the MarketBillingService. This method is called in response to the application calling BillingService#checkBillingSupported().
|
|
PurchaseResponse ( Android.Content.Context context, |
Notifies the application of purchase state changes. The application can offer an item for sale to the user via BillingService#requestPurchase(String). The BillingService calls this method after it gets the response. Another way this method can be called is if the user bought something on another device running this same app. Then Android Market notifies the other devices that the user has purchased an item, in which case the BillingService will also call this method. Finally, this method can be called if the item was refunded.
|
|
ResponseCodeReceived ( Android.Content.Context context, |
This is called when we receive a response code from Android Market for a RequestPurchase request that we made. This is used for reporting various errors and also for acknowledging that an order was sent successfully to the server. This is NOT used for any purchase state changes. All purchase state changes are received in the BillingReceiver and are handled in Security#verifyPurchase(String, String).
|
Méthode | Description | |
---|---|---|
Register ( |
||
Unregister ( |
public static BuyPageIntentResponse ( Android.App.PendingIntent pendingIntent, Android.Content.Intent intent ) : void | ||
pendingIntent | Android.App.PendingIntent | a PendingIntent that we received from Android Market that /// will create the new buy page activity |
intent | Android.Content.Intent | an intent containing a request id in an extra field that /// will be passed to the buy page activity when it is created |
Résultat | void |
public static CheckBillingSupportedResponse ( bool supported, string type ) : void | ||
supported | bool | true if in-app billing is supported. |
type | string | |
Résultat | void |
public static PurchaseResponse ( Android.Content.Context context, |
||
context | Android.Content.Context | |
purchaseState | the state of the purchase request (PURCHASED, /// CANCELED, or REFUNDED) | |
productId | string | a string identifying a product for sale |
orderId | string | a string identifying the order |
purchaseTime | long | the time the product was purchased, in milliseconds /// since the epoch (Jan 1, 1970) |
developerPayload | string | the developer provided "payload" associated with /// the order |
Résultat | void |
public static ResponseCodeReceived ( Android.Content.Context context, |
||
context | Android.Content.Context | the context |
request | the RequestPurchase request for which we received a /// response code | |
responseCode | a response code from Market to indicate the state /// of the request | |
Résultat | void |