FBSDKFeature.h 2.8 KB

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