PFPurchaseDelegate
Objective-C
@protocol PFPurchaseDelegate <NSObject>
Swift
protocol PFPurchaseDelegate : NSObjectProtocol
Delegate for PFPurchase responsible for handling updating your app’s state in response to updated groups info or promotional product purchases.
Note
Delegate methods can be called at any time after thedelegate is set
-
Called whenever
PFPurchasereceives updated groups info. This may happen periodically throughout the life of the app if new information becomes available (e.g. UIApplicationDidBecomeActive).Declaration
Objective-C
- (void)purchases:(nonnull PFPurchase *)purchase didReceiveUpdatedGroupsInfo:(nonnull PFGroupByName *)groupsByName withGroups:(nonnull PFGroupsInfo *)groups;Swift
optional func purchases(_ purchase: PFPurchase, didReceiveUpdatedGroupsInfo groupsByName: [String : PFGroup], withGroups groups: PFGroupsInfo)Parameters
purchaseRelated
PFPurchaseobjectgroupsByNameUpdated
PFGroupByNamegroupsUpdated
PFGroupsInfo
View on GitHub
PFPurchaseDelegate Protocol Reference