IAPRefreshResult

public struct IAPRefreshResult

The result returned in the refresh() or restorePurchases() callback.

  • The result state.

    Declaration

    Swift

    public internal(set) var state: IAPRefreshResultState { get }
  • If the state is failed, the result can return an IAPError. The error occurred during the processing of the purchase by the library.

    Declaration

    Swift

    public internal(set) var iapError: IAPError? { get }
  • If the state is succeeded, returns the number of purchases that have been added.

    Declaration

    Swift

    public internal(set) var addedPurchases: Int { get }
  • If the state is succeeded, returns the number of purchases that have been updated.

    Declaration

    Swift

    public internal(set) var updatedPurchases: Int { get }