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