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 <UIKit/UIKit.h> |
|
10 |
|
|
11 |
#import <FBSDKCoreKit/FBSDKAppEventName.h> |
|
12 |
#import <FBSDKCoreKit/FBSDKAppEventParameterName.h> |
|
13 |
#import <FBSDKCoreKit/FBSDKImpressionLoggingButton.h> |
|
14 |
|
|
15 |
@class FBSDKIcon; |
|
16 |
@protocol FBSDKEventLogging; |
|
17 |
|
|
18 |
NS_ASSUME_NONNULL_BEGIN |
|
19 |
|
|
20 |
/// A base class for common SDK buttons. |
|
21 |
NS_SWIFT_NAME(FBButton) |
|
22 |
@interface FBSDKButton : FBSDKImpressionLoggingButton |
|
23 |
|
|
24 |
@property (nonatomic, readonly, getter = isImplicitlyDisabled) BOOL implicitlyDisabled; |
|
25 |
|
|
26 |
- (void)checkImplicitlyDisabled; |
|
27 |
- (void)configureWithIcon:(nullable FBSDKIcon *)icon |
|
28 |
title:(nullable NSString *)title |
|
29 |
backgroundColor:(nullable UIColor *)backgroundColor |
|
30 |
highlightedColor:(nullable UIColor *)highlightedColor; |
|
31 |
|
|
32 |
/** |
|
33 |
Internal method exposed to facilitate transition to Swift. |
|
34 |
API Subject to change or removal without warning. Do not use. |
|
35 |
|
|
36 |
@warning INTERNAL - DO NOT USE |
|
37 |
*/ |
|
38 |
- (void) configureWithIcon:(nullable FBSDKIcon *)icon |
|
39 |
title:(nullable NSString *)title |
|
40 |
backgroundColor:(nullable UIColor *)backgroundColor |
|
41 |
highlightedColor:(nullable UIColor *)highlightedColor |
|
42 |
selectedTitle:(nullable NSString *)selectedTitle |
|
43 |
selectedIcon:(nullable FBSDKIcon *)selectedIcon |
|
44 |
selectedColor:(nullable UIColor *)selectedColor |
|
45 |
selectedHighlightedColor:(nullable UIColor *)selectedHighlightedColor; |
|
46 |
|
|
47 |
/** |
|
48 |
Internal method exposed to facilitate transition to Swift. |
|
49 |
API Subject to change or removal without warning. Do not use. |
|
50 |
|
|
51 |
@warning INTERNAL - DO NOT USE |
|
52 |
*/ |
|
53 |
- (UIColor *)defaultBackgroundColor; |
|
54 |
|
|
55 |
/** |
|
56 |
Internal method exposed to facilitate transition to Swift. |
|
57 |
API Subject to change or removal without warning. Do not use. |
|
58 |
|
|
59 |
@warning INTERNAL - DO NOT USE |
|
60 |
*/ |
|
61 |
- (CGSize)sizeThatFits:(CGSize)size title:(NSString *)title; |
|
62 |
|
|
63 |
/** |
|
64 |
Internal method exposed to facilitate transition to Swift. |
|
65 |
API Subject to change or removal without warning. Do not use. |
|
66 |
|
|
67 |
@warning INTERNAL - DO NOT USE |
|
68 |
*/ |
|
69 |
- (CGSize)textSizeForText:(NSString *)text font:(UIFont *)font constrainedSize:(CGSize)constrainedSize lineBreakMode:(NSLineBreakMode)lineBreakMode; |
|
70 |
|
|
71 |
/** |
|
72 |
Internal method exposed to facilitate transition to Swift. |
|
73 |
API Subject to change or removal without warning. Do not use. |
|
74 |
|
|
75 |
@warning INTERNAL - DO NOT USE |
|
76 |
*/ |
|
77 |
- (void)logTapEventWithEventName:(FBSDKAppEventName)eventName |
|
78 |
parameters:(nullable NSDictionary<FBSDKAppEventParameterName, id> *)parameters; |
|
79 |
|
|
80 |
/** |
|
81 |
Internal method exposed to facilitate transition to Swift. |
|
82 |
API Subject to change or removal without warning. Do not use. |
|
83 |
|
|
84 |
@warning INTERNAL - DO NOT USE |
|
85 |
*/ |
|
86 |
+ (void)configureWithApplicationActivationNotifier:(id)applicationActivationNotifier |
|
87 |
eventLogger:(id<FBSDKEventLogging>)eventLogger |
|
88 |
accessTokenProvider:(Class<FBSDKAccessTokenProviding>)accessTokenProvider |
|
89 |
NS_SWIFT_NAME(configure(applicationActivationNotifier:eventLogger:accessTokenProvider:)); |
|
90 |
|
|
91 |
@end |
|
92 |
|
|
93 |
NS_ASSUME_NONNULL_END |