lpw
2024-06-28 2a6e182ea4428bff2e16f033c28850f3a02a93a9
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/FBSDKFeatureExtracting.h>
12 #import <FBSDKCoreKit/FBSDKRulesFromKeyProvider.h>
13 #import <Foundation/Foundation.h>
14
15 NS_ASSUME_NONNULL_BEGIN
16
17 /**
18  Internal type exposed to facilitate transition to Swift.
19  API Subject to change or removal without warning. Do not use.
20
21  @warning INTERNAL - DO NOT USE
22  */
23 NS_SWIFT_NAME(_FeatureExtractor)
24 @interface FBSDKFeatureExtractor : NSObject <FBSDKFeatureExtracting>
25
26 @property (class, nullable, nonatomic) id<FBSDKRulesFromKeyProvider> rulesFromKeyProvider;
27
28 + (void)configureWithRulesFromKeyProvider:(id<FBSDKRulesFromKeyProvider>)rulesFromKeyProvider
29 NS_SWIFT_NAME(configure(rulesFromKeyProvider:));
30
31 + (void)loadRulesForKey:(NSString *)useCaseKey;
32
33 + (NSString *)getTextFeature:(NSString *)text
34               withScreenName:(NSString *)screenName;
35
36 + (nullable float *)getDenseFeatures:(NSDictionary<NSString *, id> *)viewHierarchy;
37
38 @end
39
40 NS_ASSUME_NONNULL_END
41
42 #endif