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 |
@abstract A delegate for `FBSDKDeviceLoginManager`. |
|
13 |
*/ |
|
14 |
NS_SWIFT_NAME(DeviceLoginManagerDelegate) |
|
15 |
@protocol FBSDKDeviceLoginManagerDelegate <NSObject> |
|
16 |
|
|
17 |
/*! |
|
18 |
@abstract Indicates the device login flow has started. You should parse `codeInfo` to present the code to the user to enter. |
|
19 |
@param loginManager the login manager instance. |
|
20 |
@param codeInfo the code info data. |
|
21 |
*/ |
|
22 |
|
|
23 |
- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager |
|
24 |
startedWithCodeInfo:(FBSDKDeviceLoginCodeInfo *)codeInfo; |
|
25 |
|
|
26 |
/*! |
|
27 |
@abstract Indicates the device login flow has finished. |
|
28 |
@param loginManager the login manager instance. |
|
29 |
@param result the results of the login flow. |
|
30 |
@param error the error, if available. |
|
31 |
@discussion The flow can be finished if the user completed the flow, cancelled, or if the code has expired. |
|
32 |
*/ |
|
33 |
- (void)deviceLoginManager:(FBSDKDeviceLoginManager *)loginManager |
|
34 |
completedWithResult:(nullable FBSDKDeviceLoginManagerResult *)result |
|
35 |
error:(nullable NSError *)error; |
|
36 |
|
|
37 |
@end |
|
38 |
|
|
39 |
NS_ASSUME_NONNULL_END |