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 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 getIAPProducts

    Declaration

    Swift

    public typealias ZSIAPProductsHandler = ((_ products: [SKProduct], _ error: ZSError?) -> ())
  • Handler for initiatePurchaseForIAPProduct and restoreIAPProductsPurchase

    Declaration

    Swift

    public typealias ZSIAPProductsPurchaseHandler = ((_ products: [ZSIAPProductPurchaseDetail], _ error: ZSError?) -> ())