PFPackageInfo

Objective-C

@interface PFPackageInfo : NSObject

Swift

class PFPackageInfo : NSObject

Package info has all necessary information of the package. Package’s active status, active product, expiration date, transaction ID

  • Name of the package

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull name;

    Swift

    var name: String { get }
  • Active product of the package

    Declaration

    Objective-C

    - (nonnull PFProduct *)activeProduct;

    Swift

    func activeProduct() -> PFProduct

    Return Value

    A PFProduct object

  • Purchased product of the package, if active product is purchased, then active and purchased product would be same

    Declaration

    Objective-C

    - (nonnull PFProduct *)purchasedProduct;

    Swift

    func purchasedProduct() -> PFProduct

    Return Value

    A PFProduct object

  • Is the package active

    Declaration

    Objective-C

    - (Boolean)isActive;

    Swift

    func isActive() -> Bool

    Return Value

    bool

  • If the group has active subscription, it’s the id of that.

    Declaration

    Objective-C

    - (nonnull NSString *)subscriptionId;

    Swift

    func subscriptionId() -> String

    Return Value

    string

  • When the package will expire

    Declaration

    Objective-C

    - (nonnull NSDate *)expirationDate;

    Swift

    func expirationDate() -> Date

    Return Value

    date object

  • Transaction identifier for the package’s subscription

    Declaration

    Objective-C

    - (nonnull NSString *)transactionId;

    Swift

    func transactionId() -> String

    Return Value

    string