Interface RestoreCallback
public interface RestoreCallback
Callback interface that the main class must implement in order for the restore
option of in-app-purchasing to work. Once the main class implements this
interface the methods within it are invoked to indicate the various restore states.
-
Method Summary
Modifier and TypeMethodDescriptionvoiditemRestored(String sku) Indicates a the given SKU was restored by a user.voidIndicates that aPurchase#restore()request was completed without errors.voidrestoreRequestError(String message) Indicates that aPurchase#restore()request was completed with errors.
-
Method Details
-
itemRestored
Indicates a the given SKU was restored by a user. When restoring multiple SKU's at once multiple calls to this method will be performed.
Parameters
sku: the sku purchased
-
restoreRequestComplete
void restoreRequestComplete()Indicates that aPurchase#restore()request was completed without errors. It doesn't mean that any particular products were restored, only that the request completed. After a call toPurchase#restore(), either this or#restoreRequestErrorwill be called at some point. -
restoreRequestError
Indicates that a
Purchase#restore()request was completed with errors. It doesn't mean that any particular products were restored, only that the request completed. After a call toPurchase#restore(), either this or#restoreRequestCompletewill be called at some point.Parameters
message: The error message.
-