Package 

Class Offering

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public final class Offering
     implements Parcelable
                        

    An offering is a collection of Package available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements

    • Method Summary

      Modifier and Type Method Description
      final <ERROR CLASS> getLifetime() Lifetime package type configured in the RevenueCat dashboard, if available.
      final <ERROR CLASS> getAnnual() Annual package type configured in the RevenueCat dashboard, if available.
      final <ERROR CLASS> getSixMonth() Six month package type configured in the RevenueCat dashboard, if available.
      final <ERROR CLASS> getThreeMonth() Three month package type configured in the RevenueCat dashboard, if available.
      final <ERROR CLASS> getTwoMonth() Two month package type configured in the RevenueCat dashboard, if available.
      final <ERROR CLASS> getMonthly() Monthly package type configured in the RevenueCat dashboard, if available.
      final <ERROR CLASS> getWeekly() Weekly package type configured in the RevenueCat dashboard, if available.
      final String getIdentifier()
      final String getServerDescription()
      final List<Package> getAvailablePackages()
      final <ERROR CLASS> get(String s) Retrieves a specific package by identifier, use this to access custom package types configured in the RevenueCat dashboard.
      final <ERROR CLASS> getPackage(String identifier) Retrieves a specific package by identifier, use this to access custom package types configured in the RevenueCat dashboard
      • Methods inherited from class com.revenuecat.purchases.Offering

        describeContents, writeToParcel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getLifetime

         final <ERROR CLASS> getLifetime()

        Lifetime package type configured in the RevenueCat dashboard, if available.

      • getAnnual

         final <ERROR CLASS> getAnnual()

        Annual package type configured in the RevenueCat dashboard, if available.

      • getSixMonth

         final <ERROR CLASS> getSixMonth()

        Six month package type configured in the RevenueCat dashboard, if available.

      • getThreeMonth

         final <ERROR CLASS> getThreeMonth()

        Three month package type configured in the RevenueCat dashboard, if available.

      • getTwoMonth

         final <ERROR CLASS> getTwoMonth()

        Two month package type configured in the RevenueCat dashboard, if available.

      • getMonthly

         final <ERROR CLASS> getMonthly()

        Monthly package type configured in the RevenueCat dashboard, if available.

      • getWeekly

         final <ERROR CLASS> getWeekly()

        Weekly package type configured in the RevenueCat dashboard, if available.

      • get

         final <ERROR CLASS> get(String s)

        Retrieves a specific package by identifier, use this to access custom package types configured in the RevenueCat dashboard. Equivalent to calling getPackage.

      • getPackage

         final <ERROR CLASS> getPackage(String identifier)

        Retrieves a specific package by identifier, use this to access custom package types configured in the RevenueCat dashboard