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.

Methods

public abstract void itemRestored(String sku)Indicates a the given SKU was restored by a user.
public abstract void restoreRequestComplete()Indicates that a Purchase#restore() request was completed without errors.
public abstract void restoreRequestError(String message)Indicates that a Purchase#restore() request was completed with errors.

Method details

itemRestored

public abstract void itemRestored(String sku)
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 String
the sku purchased

restoreRequestComplete

public abstract void restoreRequestComplete()
Indicates that a Purchase#restore() request was completed without errors. It doesn’t mean that any particular products were restored, only that the request completed. After a call to Purchase#restore(), either this or #restoreRequestError will be called at some point.

restoreRequestError

public abstract void restoreRequestError(String message)
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 to Purchase#restore(), either this or #restoreRequestComplete will be called at some point.

Parameters

message String
The error message.