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 "TargetConditionals.h" |
|
10 |
|
|
11 |
#if !TARGET_OS_TV |
|
12 |
|
|
13 |
#import <UIKit/UIKit.h> |
|
14 |
|
|
15 |
#import <FBSDKLoginKit/FBSDKTooltipView.h> |
|
16 |
|
|
17 |
NS_ASSUME_NONNULL_BEGIN |
|
18 |
|
|
19 |
@protocol FBSDKLoginTooltipViewDelegate; |
|
20 |
|
|
21 |
/** |
|
22 |
Represents a tooltip to be displayed next to a Facebook login button |
|
23 |
to highlight features for new users. |
|
24 |
|
|
25 |
The `FBSDKLoginButton` may display this view automatically. If you do |
|
26 |
not use the `FBSDKLoginButton`, you can manually call one of the `present*` methods |
|
27 |
as appropriate and customize behavior via `FBSDKLoginTooltipViewDelegate` delegate. |
|
28 |
|
|
29 |
By default, the `FBSDKLoginTooltipView` is not added to the superview until it is |
|
30 |
determined the app has migrated to the new login experience. You can override this |
|
31 |
(e.g., to test the UI layout) by implementing the delegate or setting `forceDisplay` to YES. |
|
32 |
|
|
33 |
*/ |
|
34 |
NS_SWIFT_NAME(FBLoginTooltipView) |
|
35 |
@interface FBSDKLoginTooltipView : FBSDKTooltipView |
|
36 |
|
|
37 |
/** the delegate */ |
|
38 |
@property (nonatomic, weak) id<FBSDKLoginTooltipViewDelegate> delegate; |
|
39 |
|
|
40 |
/** if set to YES, the view will always be displayed and the delegate's |
|
41 |
`loginTooltipView:shouldAppear:` will NOT be called. */ |
|
42 |
@property (nonatomic, getter = shouldForceDisplay, assign) BOOL forceDisplay; |
|
43 |
|
|
44 |
@end |
|
45 |
|
|
46 |
NS_ASSUME_NONNULL_END |
|
47 |
|
|
48 |
#endif |