FBSDKModelManager.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. #if !TARGET_OS_TV
  9. #import <FBSDKCoreKit/FBSDKEventProcessing.h>
  10. #import <FBSDKCoreKit/FBSDKIntegrityParametersProcessorProvider.h>
  11. #import <FBSDKCoreKit/FBSDKIntegrityProcessing.h>
  12. #import <FBSDKCoreKit/FBSDKRulesFromKeyProvider.h>
  13. #import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>
  14. #import <Foundation/Foundation.h>
  15. @protocol FBSDKFeatureChecking;
  16. @protocol FBSDKGraphRequestFactory;
  17. @protocol FBSDKFileManaging;
  18. @protocol FBSDKDataPersisting;
  19. @protocol FBSDKSettings;
  20. @protocol FBSDKFileDataExtracting;
  21. @protocol FBSDKGateKeeperManaging;
  22. @protocol FBSDKSuggestedEventsIndexer;
  23. @protocol FBSDKFeatureExtracting;
  24. NS_ASSUME_NONNULL_BEGIN
  25. /**
  26. Internal type exposed to facilitate transition to Swift.
  27. API Subject to change or removal without warning. Do not use.
  28. @warning INTERNAL - DO NOT USE
  29. */
  30. NS_SWIFT_NAME(_ModelManager)
  31. @interface FBSDKModelManager : NSObject <FBSDKEventProcessing, FBSDKIntegrityParametersProcessorProvider, FBSDKIntegrityProcessing, FBSDKRulesFromKeyProvider>
  32. @property (class, nonnull, readonly) FBSDKModelManager *shared;
  33. - (instancetype)init NS_UNAVAILABLE;
  34. + (instancetype)new NS_UNAVAILABLE;
  35. - (void)enable;
  36. - (nullable NSData *)getWeightsForKey:(NSString *)useCase;
  37. - (nullable NSArray<NSNumber *> *)getThresholdsForKey:(NSString *)useCase;
  38. - (BOOL)processIntegrity:(nullable NSString *)param;
  39. - (NSString *)processSuggestedEvents:(NSString *)textFeature denseData:(nullable float *)denseData;
  40. - (void)configureWithFeatureChecker:(id<FBSDKFeatureChecking>)featureChecker
  41. graphRequestFactory:(id<FBSDKGraphRequestFactory>)graphRequestFactory
  42. fileManager:(id<FBSDKFileManaging>)fileManager
  43. store:(id<FBSDKDataPersisting>)store
  44. getAppID:(NSString * (^)(void))getAppID
  45. dataExtractor:(Class<FBSDKFileDataExtracting>)dataExtractor
  46. gateKeeperManager:(Class<FBSDKGateKeeperManaging>)gateKeeperManager
  47. suggestedEventsIndexer:(id<FBSDKSuggestedEventsIndexer>)suggestedEventsIndexer
  48. featureExtractor:(Class<FBSDKFeatureExtracting>)featureExtractor
  49. NS_SWIFT_NAME(configure(featureChecker:graphRequestFactory:fileManager:store:getAppID:dataExtractor:gateKeeperManager:suggestedEventsIndexer:featureExtractor:));
  50. @end
  51. NS_ASSUME_NONNULL_END
  52. #endif