# 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 Type
  Method
  Description
  `void`
  `itemRestored(String sku)`
  Indicates a the given SKU was restored by a user.
  `void`
  `restoreRequestComplete()`
  Indicates that a `Purchase#restore()` request was completed without errors.
  `void`
  `restoreRequestError(String message)`
  Indicates that a `Purchase#restore()` request was completed with errors.

- ## Method Details

  - ### itemRestored

    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`: the sku purchased

  - ### restoreRequestComplete

    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

    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`: The error message.