Class AdaptyProfile.AccessLevel

    • Method Detail

      • getId

         final String getId()

        Unique identifier of the access level configured by you in Adapty Dashboard.

      • isActive

         final Boolean isActive()

        true if this access level is active. Generally, you can check this property to determine whether a user has an access to premium features.

      • getStore

         final String getStore()

        A store of the purchase that unlocked this access level.

      • getActivatedAt

         final String getActivatedAt()

        ISO 8601 datetime when this access level was activated.

      • getStartsAt

         final String getStartsAt()

        ISO 8601 datetime when this access level has started (could be in the future).

      • getRenewedAt

         final String getRenewedAt()

        ISO 8601 datetime when the access level was renewed. It can be null if the purchase was first in chain or it is non-renewing subscription / non-consumable (e.g. lifetime).

      • getExpiresAt

         final String getExpiresAt()

        ISO 8601 datetime when the access level will expire (could be in the past and could be null for lifetime access).

      • isLifetime

         final Boolean isLifetime()

        true if this access level is active for a lifetime (no expiration date).

      • getActiveIntroductoryOfferType

         final String getActiveIntroductoryOfferType()

        A type of an active introductory offer. If the value is not null, it means that the offer was applied during the current subscription period.

      • getActivePromotionalOfferType

         final String getActivePromotionalOfferType()

        A type of an active promotional offer. If the value is not null, it means that the offer was applied during the current subscription period.

      • getWillRenew

         final Boolean getWillRenew()

        true if this auto-renewable subscription is set to renew.

      • isInGracePeriod

         final Boolean isInGracePeriod()

        true if this auto-renewable subscription is in the grace period.

      • getUnsubscribedAt

         final String getUnsubscribedAt()

        ISO 8601 datetime when the auto-renewable subscription was cancelled. Subscription can still be active, it just means that auto-renewal turned off. Will be set to null if the user reactivates the subscription.