Type Aliases

The following type aliases are available globally.

ZSKit

  • Handler for getPlans function

    Declaration

    Swift

    public typealias ZSPlansHandler = ((_ plans: [ZSPlan], _ error: ZSError?) -> ())
  • Handler for initiatePurchase and restorePurchase function

    Declaration

    Swift

    public typealias ZSPurchaseHandler = ((_ subscription: ZSSubscriptionDetail?, _ error: ZSError?) -> ())
  • Handler for initiatePurchase and restorePurchase function

    Declaration

    Swift

    public typealias ZSRestorePurchaseHandler = ((_ response: [ZSRestorePurchaseInfo], _ error: ZSError?) -> ())
  • Handler for isStorePurchaseAssociatedWithCurrentUser

    Declaration

    Swift

    public typealias ZSUserValidateHandler = ((_ isUserValid: Bool, _ validUserForReceipt: String?, _ error: ZSError?) -> ())
  • Handler for isUserEligibleForIntroductoryOffer

    Declaration

    Swift

    public typealias ZSIntroOfferAvailablityHandler = ((_ isIntroOfferAppliciable: Bool, _ error: ZSError?) -> ())
  • Handler for getStoreKitProducts

    Declaration

    Swift

    public typealias ZSSKProductsHandler = ((Result<[Product], ZSError>) -> ())