public interface ModifySubscriptionListener
Clients must implement the ModifySubscriptionListener and register an
instance of their implementation with
PurchasingService.registerListener(android.content.Context, ModifySubscriptionListener)
before using PurchasingService.modifySubscription(String, ProrationMode)
in the PurchasingService.
Your registered implementation of ModifySubscriptionListener
asynchronously receives callbacks when your initiated operation via
PurchasingService.modifySubscription(String, ProrationMode) in
the PurchasingService has completed.
For example, if you initiate a modify subscription call with
PurchasingService.modifySubscription(String, ProrationMode),
you will eventually receive a notification that the ModifySubscriptionResponse
is available by your implemented
onModifySubscriptionResponse(ModifySubscriptionResponse)
method.
Keep in mind that your UI thread invokes these callbacks. Execute time-intensive tasks on another thread.
| Modifier and Type | Method and Description |
|---|---|
void |
onModifySubscriptionResponse(ModifySubscriptionResponse modifySubscriptionResponse)
This callback method is invoked when a
ModifySubscriptionResponse is
available for a request initiated by
PurchasingService.modifySubscription(String, ProrationMode). |
void onModifySubscriptionResponse(ModifySubscriptionResponse modifySubscriptionResponse)
This callback method is invoked when a ModifySubscriptionResponse is
available for a request initiated by
PurchasingService.modifySubscription(String, ProrationMode).
Implement this method to, for example, update your application state, save modifySubscription information to a database, send information to your developer server.
Keep in mind that the UI thread invokes this method. Execute time-intensive tasks on another thread.
modifySubscriptionResponse - Response containing the modified receipts data and status of the request.