lpw
2023-07-20 80f7cc0c18ce7e590a4c14cd1011a82b296770f5
commit | author | age
e0ec42 1 /*
L 2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8
9 #import <StoreKit/StoreKit.h>
10
11 @protocol FBSDKSettings;
12 @protocol FBSDKEventLogging;
13 @protocol FBSDKGateKeeperManaging;
14 @protocol FBSDKDataPersisting;
15 @protocol __FBSDKLoggerCreating;
16 @protocol FBSDKProductsRequestCreating;
17 @protocol FBSDKAppStoreReceiptProviding;
18
19 NS_ASSUME_NONNULL_BEGIN
20
21 /**
22  Used for requesting information about purchase events from StoreKit to use when
23  logging AppEvents
24  */
25 NS_SWIFT_NAME(PaymentProductRequestor)
26 @interface FBSDKPaymentProductRequestor : NSObject <SKProductsRequestDelegate>
27
28 + (instancetype)new NS_UNAVAILABLE;
29 - (instancetype)init NS_UNAVAILABLE;
30
31 - (instancetype)initWithTransaction:(SKPaymentTransaction *)transaction
32                            settings:(id<FBSDKSettings>)settings
33                         eventLogger:(id<FBSDKEventLogging>)eventLogger
34                   gateKeeperManager:(Class<FBSDKGateKeeperManaging>)gateKeeperManager
35                               store:(id<FBSDKDataPersisting>)store
36                       loggerFactory:(id<__FBSDKLoggerCreating>)loggerFactory
37              productsRequestFactory:(id<FBSDKProductsRequestCreating>)productRequestFactory
38             appStoreReceiptProvider:(id<FBSDKAppStoreReceiptProviding>)receiptProvider;
39
40 - (void)resolveProducts;
41
42 @end
43
44 NS_ASSUME_NONNULL_END