| | |
| | | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| | | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| | | |
| | | #import "TargetConditionals.h" |
| | | |
| | | #if !TARGET_OS_TV |
| | | |
| | | #import <UIKit/UIKit.h> |
| | | |
| | | NS_ASSUME_NONNULL_BEGIN |
| | | |
| | | /** |
| | | FBSDKTooltipViewArrowDirection enum |
| | |
| | | FBSDKTooltipViewArrowDirectionDown = 0, |
| | | /** View is located below given point, arrow is pointing up. */ |
| | | FBSDKTooltipViewArrowDirectionUp = 1, |
| | | }; |
| | | } NS_SWIFT_NAME(FBTooltipView.ArrowDirection); |
| | | |
| | | /** |
| | | FBSDKTooltipColorStyle enum |
| | |
| | | FBSDKTooltipColorStyleFriendlyBlue = 0, |
| | | /** Dark gray background, white text, light gray close button. */ |
| | | FBSDKTooltipColorStyleNeutralGray = 1, |
| | | }; |
| | | } NS_SWIFT_NAME(FBTooltipView.ColorStyle); |
| | | |
| | | /** |
| | | |
| | |
| | | |
| | | The tooltip fades in and will automatically fade out. See `displayDuration`. |
| | | */ |
| | | NS_SWIFT_NAME(FBTooltipView) |
| | | @interface FBSDKTooltipView : UIView |
| | | |
| | | /** |
| | |
| | | /** |
| | | Gets or sets the message. |
| | | */ |
| | | @property (nonatomic, copy) NSString *message; |
| | | @property (nonatomic, copy, nullable) NSString *message; |
| | | |
| | | /** |
| | | Gets or sets the optional phrase that comprises the first part of the label (and is highlighted differently). |
| | | */ |
| | | @property (nonatomic, copy) NSString *tagline; |
| | | @property (nonatomic, copy, nullable) NSString *tagline; |
| | | |
| | | /** |
| | | Designated initializer. |
| | |
| | | |
| | | @see FBSDKLoginTooltipView |
| | | */ |
| | | - (instancetype)initWithTagline:(NSString *)tagline message:(NSString *)message colorStyle:(FBSDKTooltipColorStyle)colorStyle; |
| | | - (instancetype)initWithTagline:(nullable NSString *)tagline |
| | | message:(nullable NSString *)message |
| | | colorStyle:(FBSDKTooltipColorStyle)colorStyle; |
| | | |
| | | /** |
| | | Show tooltip at the top or at the bottom of given view. |
| | |
| | | @param arrowDirection whenever arrow should be pointing up (message bubble is below the arrow) or |
| | | down (message bubble is above the arrow). |
| | | */ |
| | | - (void)presentInView:(UIView *)view withArrowPosition:(CGPoint)arrowPosition direction:(FBSDKTooltipViewArrowDirection)arrowDirection; |
| | | - (void)presentInView:(UIView *)view |
| | | withArrowPosition:(CGPoint)arrowPosition |
| | | direction:(FBSDKTooltipViewArrowDirection)arrowDirection |
| | | NS_SWIFT_NAME(present(in:arrowPosition:direction:)); |
| | | |
| | | /** |
| | | Remove tooltip manually. |
| | |
| | | - (void)dismiss; |
| | | |
| | | @end |
| | | |
| | | NS_ASSUME_NONNULL_END |
| | | |
| | | #endif |