Classes

The following classes are available globally.

  • An entitlement represents features or content that a user is entitled to. Entitlements are unlocked by having an active subscription or making a one-time purchase. Many different products can unlock. Most subscription apps only have one entitlement, unlocking all premium features. However, if you had two tiers of content such as premium and premium_plus, you would have 2 entitlements. A common and simple setup example is one entitlement with identifier pro, one offering monthly, with one product. See this link for more info

    See more

    Declaration

    Objective-C

    
    @interface RCEntitlement : NSObject
  • Most well monetized subscription apps provide many different offerings to purchase an entitlement. These are usually associated with different durations i.e. an annual plan and a monthly plan. See this link for more info

    See more

    Declaration

    Objective-C

    
    @interface RCOffering : NSObject
  • A container for the most recent purchaser info returned from RCPurchases. These objects are non-mutable and do not update automatically.

    See more

    Declaration

    Objective-C

    
    @interface RCPurchaserInfo : NSObject
  • RCPurchases is the entry point for Purchases.framework. It should be instantiated as soon as your app has a unique user id for your user. This can be when a user logs in if you have accounts or on launch if you can generate a random user identifier.

    Warning

    Only one instance of RCPurchases should be instantiated at a time! Use a configure method to let the framework handle the singleton instance for you.
    See more

    Declaration

    Objective-C

    
    @interface RCPurchases : NSObject