123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- /*
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- * All rights reserved.
- *
- * This source code is licensed under the license found in the
- * LICENSE file in the root directory of this source tree.
- */
- #import <UIKit/UIKit.h>
- #import <FBSDKCoreKit/FBSDKAppEventName.h>
- #import <FBSDKCoreKit/FBSDKAppEventParameterName.h>
- #import <FBSDKCoreKit/FBSDKImpressionLoggingButton.h>
- @class FBSDKIcon;
- @protocol FBSDKEventLogging;
- NS_ASSUME_NONNULL_BEGIN
- /// A base class for common SDK buttons.
- NS_SWIFT_NAME(FBButton)
- @interface FBSDKButton : FBSDKImpressionLoggingButton
- @property (nonatomic, readonly, getter = isImplicitlyDisabled) BOOL implicitlyDisabled;
- - (void)checkImplicitlyDisabled;
- - (void)configureWithIcon:(nullable FBSDKIcon *)icon
- title:(nullable NSString *)title
- backgroundColor:(nullable UIColor *)backgroundColor
- highlightedColor:(nullable UIColor *)highlightedColor;
- /**
- Internal method exposed to facilitate transition to Swift.
- API Subject to change or removal without warning. Do not use.
- @warning INTERNAL - DO NOT USE
- */
- - (void) configureWithIcon:(nullable FBSDKIcon *)icon
- title:(nullable NSString *)title
- backgroundColor:(nullable UIColor *)backgroundColor
- highlightedColor:(nullable UIColor *)highlightedColor
- selectedTitle:(nullable NSString *)selectedTitle
- selectedIcon:(nullable FBSDKIcon *)selectedIcon
- selectedColor:(nullable UIColor *)selectedColor
- selectedHighlightedColor:(nullable UIColor *)selectedHighlightedColor;
- /**
- Internal method exposed to facilitate transition to Swift.
- API Subject to change or removal without warning. Do not use.
- @warning INTERNAL - DO NOT USE
- */
- - (UIColor *)defaultBackgroundColor;
- /**
- Internal method exposed to facilitate transition to Swift.
- API Subject to change or removal without warning. Do not use.
- @warning INTERNAL - DO NOT USE
- */
- - (CGSize)sizeThatFits:(CGSize)size title:(NSString *)title;
- /**
- Internal method exposed to facilitate transition to Swift.
- API Subject to change or removal without warning. Do not use.
- @warning INTERNAL - DO NOT USE
- */
- - (CGSize)textSizeForText:(NSString *)text font:(UIFont *)font constrainedSize:(CGSize)constrainedSize lineBreakMode:(NSLineBreakMode)lineBreakMode;
- /**
- Internal method exposed to facilitate transition to Swift.
- API Subject to change or removal without warning. Do not use.
- @warning INTERNAL - DO NOT USE
- */
- - (void)logTapEventWithEventName:(FBSDKAppEventName)eventName
- parameters:(nullable NSDictionary<FBSDKAppEventParameterName, id> *)parameters;
- /**
- Internal method exposed to facilitate transition to Swift.
- API Subject to change or removal without warning. Do not use.
- @warning INTERNAL - DO NOT USE
- */
- + (void)configureWithApplicationActivationNotifier:(id)applicationActivationNotifier
- eventLogger:(id<FBSDKEventLogging>)eventLogger
- accessTokenProvider:(Class<FBSDKAccessTokenProviding>)accessTokenProvider
- NS_SWIFT_NAME(configure(applicationActivationNotifier:eventLogger:accessTokenProvider:));
- @end
- NS_ASSUME_NONNULL_END
|