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 |
A delegate for `FBSDKLoginButton` |
|
14 |
*/ |
|
15 |
NS_SWIFT_NAME(LoginButtonDelegate) |
|
16 |
@protocol FBSDKLoginButtonDelegate <NSObject> |
|
17 |
|
|
18 |
@required |
|
19 |
/** |
|
20 |
Sent to the delegate when the button was used to login. |
|
21 |
@param loginButton The sender |
|
22 |
@param result The results of the login |
|
23 |
@param error The error (if any) from the login |
|
24 |
*/ |
|
25 |
- (void) loginButton:(FBSDKLoginButton *)loginButton |
|
26 |
didCompleteWithResult:(nullable FBSDKLoginManagerLoginResult *)result |
|
27 |
error:(nullable NSError *)error; |
|
28 |
|
|
29 |
/** |
|
30 |
Sent to the delegate when the button was used to logout. |
|
31 |
@param loginButton The button that was clicked. |
|
32 |
*/ |
|
33 |
- (void)loginButtonDidLogOut:(FBSDKLoginButton *)loginButton; |
|
34 |
|
|
35 |
@optional |
|
36 |
/** |
|
37 |
Sent to the delegate when the button is about to login. |
|
38 |
@param loginButton The sender |
|
39 |
@return YES if the login should be allowed to proceed, NO otherwise |
|
40 |
*/ |
|
41 |
- (BOOL)loginButtonWillLogin:(FBSDKLoginButton *)loginButton; |
|
42 |
|
|
43 |
@end |
|
44 |
|
|
45 |
NS_ASSUME_NONNULL_END |