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 <Foundation/Foundation.h>
10
11 NS_ASSUME_NONNULL_BEGIN
12
13 /**
14  Internal Type exposed to facilitate transition to Swift.
15  API Subject to change or removal without warning. Do not use.
16
17  FBSDKFeature enum
18  Defines features in SDK
19
20  Sample:
21  FBSDKFeatureAppEvents = 0x00010000,
22                             ^ ^ ^ ^
23                             | | | |
24                           kit | | |
25                         feature | |
26                       sub-feature |
27                     sub-sub-feature
28  1st byte: kit
29  2nd byte: feature
30  3rd byte: sub-feature
31  4th byte: sub-sub-feature
32
33  @warning INTERNAL - DO NOT USE
34  */
35 typedef NS_ENUM(NSUInteger, FBSDKFeature) {
36   FBSDKFeatureNone = 0x00000000,
37   // Features in CoreKit
38   /// Essential of CoreKit
39   FBSDKFeatureCore = 0x01000000,
40   /// App Events
41   FBSDKFeatureAppEvents = 0x01010000,
42   FBSDKFeatureCodelessEvents = 0x01010100,
43   FBSDKFeatureRestrictiveDataFiltering = 0x01010200,
44   FBSDKFeatureAAM = 0x01010300,
45   FBSDKFeaturePrivacyProtection = 0x01010400,
46   FBSDKFeatureSuggestedEvents = 0x01010401,
47   FBSDKFeatureIntelligentIntegrity = 0x01010402,
48   FBSDKFeatureModelRequest = 0x01010403,
49   FBSDKFeatureEventDeactivation = 0x01010500,
50   FBSDKFeatureSKAdNetwork = 0x01010600,
51   FBSDKFeatureSKAdNetworkConversionValue = 0x01010601,
52   FBSDKFeatureATELogging = 0x01010700,
53   FBSDKFeatureAEM = 0x01010800,
54   FBSDKFeatureAEMConversionFiltering = 0x01010801,
55   FBSDKFeatureAEMCatalogMatching = 0x01010802,
56   FBSDKFeatureAEMAdvertiserRuleMatchInServer = 0x01010803,
57   FBSDKFeatureAEMAutoSetup = 0x01010804,
58   FBSDKFeatureAppEventsCloudbridge = 0x01010900,
59   /// Instrument
60   FBSDKFeatureInstrument = 0x01020000,
61   FBSDKFeatureCrashReport = 0x01020100,
62   FBSDKFeatureCrashShield = 0x01020101,
63   FBSDKFeatureErrorReport = 0x01020200,
64
65   // Features in LoginKit
66   /// Essential of LoginKit
67   FBSDKFeatureLogin = 0x02000000,
68
69   // Features in ShareKit
70   /// Essential of ShareKit
71   FBSDKFeatureShare = 0x03000000,
72
73   // Features in GamingServicesKit
74   /// Essential of GamingServicesKit
75   FBSDKFeatureGamingServices = 0x04000000,
76 } NS_SWIFT_NAME(SDKFeature);
77
78 /**
79  Internal Type exposed to facilitate transition to Swift.
80  API Subject to change or removal without warning. Do not use.
81
82  @warning INTERNAL - DO NOT USE
83  */
84 typedef void (^FBSDKFeatureManagerBlock)(BOOL enabled);
85
86 NS_ASSUME_NONNULL_END