lpw
2023-06-03 e0ec4235cc7b8d05ec1aaa414ec2d2cac798d74e
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 <FBSDKCoreKit/FBSDKImpressionLoggerFactoryProtocol.h>
10 #import <FBSDKCoreKit_Basics/FBSDKNotificationDelivering.h>
11
12 @protocol FBSDKGraphRequestFactory;
13 @protocol FBSDKEventLogging;
14 @protocol FBSDKNotificationDelivering;
15 @protocol FBSDKAccessTokenProviding;
16
17 NS_ASSUME_NONNULL_BEGIN
18
19 /**
20  Internal type exposed to facilitate transition to Swift.
21  API Subject to change or removal without warning. Do not use.
22
23  @warning INTERNAL - DO NOT USE
24  */
25 NS_SWIFT_NAME(_ImpressionLoggerFactory)
26 @interface FBSDKImpressionLoggerFactory : NSObject <FBSDKImpressionLoggerFactory>
27
28 @property (nonatomic, readonly) id<FBSDKGraphRequestFactory> graphRequestFactory;
29 @property (nonatomic, readonly) id<FBSDKEventLogging> eventLogger;
30 @property (nonatomic, readonly) id<FBSDKNotificationDelivering> notificationCenter;
31 @property (nonatomic, readonly) Class<FBSDKAccessTokenProviding> accessTokenWallet;
32
33 - (instancetype)init NS_UNAVAILABLE;
34 + (instancetype)new NS_UNAVAILABLE;
35
36 // UNCRUSTIFY_FORMAT_OFF
37 - (instancetype)initWithGraphRequestFactory:(nonnull id<FBSDKGraphRequestFactory>)graphRequestFactory
38                                 eventLogger:(nonnull id<FBSDKEventLogging>)eventLogger
39                          notificationCenter:(nonnull id<FBSDKNotificationDelivering>)notificationCenter
40                           accessTokenWallet:(nonnull Class<FBSDKAccessTokenProviding>)accessTokenWallet
41   NS_DESIGNATED_INITIALIZER
42   NS_SWIFT_NAME(init(graphRequestFactory:eventLogger:notificationCenter:accessTokenWallet:));
43 // UNCRUSTIFY_FORMAT_ON
44
45 @end
46
47 NS_ASSUME_NONNULL_END