PFProduct

@interface PFProduct : PFObject <PFSubclassing>

The PFProduct class represents an in-app purchase product on the Parse server. By default, products can only be created via the Data Browser. Saving a PFProduct will result in error. However, the products’ metadata information can be queried and viewed.

This class is currently for iOS only.

  • The product identifier of the product.

    This should match the product identifier in iTunes Connect exactly.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *productIdentifier;
  • The icon of the product.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) PFFile *icon;
  • The title of the product.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *title;
  • The subtitle of the product.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSString *subtitle;
  • The order in which the product information is displayed in PFProductTableViewController.

    The product with a smaller order is displayed earlier in the PFProductTableViewController.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSNumber *order;
  • The name of the associated download.

    If there is no downloadable asset, it should be nil.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) NSString *downloadName;