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 |
NS_ASSUME_NONNULL_BEGIN |
|
10 |
|
|
11 |
/** |
|
12 |
@protocol |
|
13 |
|
|
14 |
The `FBSDKLoginTooltipViewDelegate` protocol defines the methods used to receive event |
|
15 |
notifications from `FBSDKLoginTooltipView` objects. |
|
16 |
*/ |
|
17 |
NS_SWIFT_NAME(LoginTooltipViewDelegate) |
|
18 |
@protocol FBSDKLoginTooltipViewDelegate <NSObject> |
|
19 |
|
|
20 |
@optional |
|
21 |
|
|
22 |
/** |
|
23 |
Asks the delegate if the tooltip view should appear |
|
24 |
|
|
25 |
@param view The tooltip view. |
|
26 |
@param appIsEligible The value fetched from the server identifying if the app |
|
27 |
is eligible for the new login experience. |
|
28 |
|
|
29 |
|
|
30 |
Use this method to customize display behavior. |
|
31 |
*/ |
|
32 |
- (BOOL)loginTooltipView:(FBSDKLoginTooltipView *)view shouldAppear:(BOOL)appIsEligible; |
|
33 |
|
|
34 |
/** |
|
35 |
Tells the delegate the tooltip view will appear, specifically after it's been |
|
36 |
added to the super view but before the fade in animation. |
|
37 |
|
|
38 |
@param view The tooltip view. |
|
39 |
*/ |
|
40 |
- (void)loginTooltipViewWillAppear:(FBSDKLoginTooltipView *)view; |
|
41 |
|
|
42 |
/** |
|
43 |
Tells the delegate the tooltip view will not appear (i.e., was not |
|
44 |
added to the super view). |
|
45 |
|
|
46 |
@param view The tooltip view. |
|
47 |
*/ |
|
48 |
- (void)loginTooltipViewWillNotAppear:(FBSDKLoginTooltipView *)view; |
|
49 |
|
|
50 |
@end |
|
51 |
|
|
52 |
NS_ASSUME_NONNULL_END |