Skip to content

Commit 7e0afe6

Browse files
committed
Add nullability annotations to PFPurchase.
1 parent b72bbd5 commit 7e0afe6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Parse/PFPurchase.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
#import <StoreKit/StoreKit.h>
1212

1313
#import <Parse/PFConstants.h>
14+
#import <Parse/PFNullability.h>
1415

1516
@class PFProduct;
1617

18+
PF_ASSUME_NONNULL_BEGIN
19+
1720
/*!
1821
`PFPurchase` provides a set of APIs for working with in-app purchases.
1922
@@ -65,7 +68,7 @@
6568
*/
6669
+ (void)downloadAssetForTransaction:(SKPaymentTransaction *)transaction
6770
completion:(void(^)(NSString *filePath, NSError *error))completion
68-
progress:(PFProgressBlock)progress;
71+
progress:(PF_NULLABLE PFProgressBlock)progress;
6972

7073
/*!
7174
@abstract *Asynchronously* restore completed transactions for the current user.
@@ -85,6 +88,8 @@
8588
8689
@warning This method will return `nil`, if the purchase wasn't verified or if the asset was not downloaded.
8790
*/
88-
+ (NSString *)assetContentPathForProduct:(PFProduct *)product;
91+
+ (PF_NULLABLE NSString *)assetContentPathForProduct:(PFProduct *)product;
8992

9093
@end
94+
95+
PF_ASSUME_NONNULL_END

0 commit comments

Comments
 (0)