commit | author | age
|
2e29a3
|
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/FBSDKImpressionLoggingButton.h> |
|
12 |
@class FBSDKIcon; |
|
13 |
|
|
14 |
NS_ASSUME_NONNULL_BEGIN |
|
15 |
|
|
16 |
/** |
|
17 |
A base class for common SDK buttons. |
|
18 |
*/ |
|
19 |
NS_SWIFT_NAME(FBButton) |
|
20 |
@interface FBSDKButton : FBSDKImpressionLoggingButton |
|
21 |
|
|
22 |
@property (nonatomic, readonly, getter = isImplicitlyDisabled) BOOL implicitlyDisabled; |
|
23 |
|
|
24 |
- (void)checkImplicitlyDisabled; |
|
25 |
- (void)configureWithIcon:(nullable FBSDKIcon *)icon |
|
26 |
title:(nullable NSString *)title |
|
27 |
backgroundColor:(nullable UIColor *)backgroundColor |
|
28 |
highlightedColor:(nullable UIColor *)highlightedColor; |
|
29 |
|
|
30 |
/** |
|
31 |
Internal method 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 |
- (void) configureWithIcon:(nullable FBSDKIcon *)icon |
|
37 |
title:(nullable NSString *)title |
|
38 |
backgroundColor:(nullable UIColor *)backgroundColor |
|
39 |
highlightedColor:(nullable UIColor *)highlightedColor |
|
40 |
selectedTitle:(nullable NSString *)selectedTitle |
|
41 |
selectedIcon:(nullable FBSDKIcon *)selectedIcon |
|
42 |
selectedColor:(nullable UIColor *)selectedColor |
|
43 |
selectedHighlightedColor:(nullable UIColor *)selectedHighlightedColor; |
|
44 |
|
|
45 |
/** |
|
46 |
Internal method exposed to facilitate transition to Swift. |
|
47 |
API Subject to change or removal without warning. Do not use. |
|
48 |
|
|
49 |
@warning INTERNAL - DO NOT USE |
|
50 |
*/ |
|
51 |
- (UIColor *)defaultBackgroundColor; |
|
52 |
|
|
53 |
/** |
|
54 |
Internal method exposed to facilitate transition to Swift. |
|
55 |
API Subject to change or removal without warning. Do not use. |
|
56 |
|
|
57 |
@warning INTERNAL - DO NOT USE |
|
58 |
*/ |
|
59 |
- (CGSize)sizeThatFits:(CGSize)size title:(NSString *)title; |
|
60 |
|
|
61 |
/** |
|
62 |
Internal method exposed to facilitate transition to Swift. |
|
63 |
API Subject to change or removal without warning. Do not use. |
|
64 |
|
|
65 |
@warning INTERNAL - DO NOT USE |
|
66 |
*/ |
|
67 |
- (CGSize)textSizeForText:(NSString *)text font:(UIFont *)font constrainedSize:(CGSize)constrainedSize lineBreakMode:(NSLineBreakMode)lineBreakMode; |
|
68 |
|
|
69 |
/** |
|
70 |
Internal method exposed to facilitate transition to Swift. |
|
71 |
API Subject to change or removal without warning. Do not use. |
|
72 |
|
|
73 |
@warning INTERNAL - DO NOT USE |
|
74 |
*/ |
|
75 |
- (void)logTapEventWithEventName:(NSString *)eventName |
|
76 |
parameters:(nullable NSDictionary<NSString *, id> *)parameters; |
|
77 |
@end |
|
78 |
|
|
79 |
NS_ASSUME_NONNULL_END |