commit | author | age
|
bad748
|
1 |
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved. |
W |
2 |
// |
|
3 |
// You are hereby granted a non-exclusive, worldwide, royalty-free license to use, |
|
4 |
// copy, modify, and distribute this software in source code or binary form for use |
|
5 |
// in connection with the web services and APIs provided by Facebook. |
|
6 |
// |
|
7 |
// As with any software that integrates with the Facebook platform, your use of |
|
8 |
// this software is subject to the Facebook Developer Principles and Policies |
|
9 |
// [http://developers.facebook.com/policy/]. This copyright notice shall be |
|
10 |
// included in all copies or substantial portions of the software. |
|
11 |
// |
|
12 |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
13 |
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS |
|
14 |
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR |
|
15 |
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER |
|
16 |
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
17 |
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
18 |
|
|
19 |
#import <Foundation/Foundation.h> |
|
20 |
|
e81c27
|
21 |
NS_ASSUME_NONNULL_BEGIN |
H |
22 |
|
bad748
|
23 |
@class FBSDKAccessToken; |
W |
24 |
|
9febd9
|
25 |
/** |
W |
26 |
Describes the result of a login attempt. |
bad748
|
27 |
*/ |
e81c27
|
28 |
NS_SWIFT_NAME(LoginManagerLoginResult) |
bad748
|
29 |
@interface FBSDKLoginManagerLoginResult : NSObject |
W |
30 |
|
13e53a
|
31 |
- (instancetype)init NS_UNAVAILABLE; |
H |
32 |
+ (instancetype)new NS_UNAVAILABLE; |
|
33 |
|
9febd9
|
34 |
/** |
W |
35 |
the access token. |
bad748
|
36 |
*/ |
e81c27
|
37 |
@property (copy, nonatomic, nullable) FBSDKAccessToken *token; |
bad748
|
38 |
|
9febd9
|
39 |
/** |
W |
40 |
whether the login was cancelled by the user. |
bad748
|
41 |
*/ |
W |
42 |
@property (readonly, nonatomic) BOOL isCancelled; |
|
43 |
|
9febd9
|
44 |
/** |
W |
45 |
the set of permissions granted by the user in the associated request. |
|
46 |
|
|
47 |
inspect the token's permissions set for a complete list. |
bad748
|
48 |
*/ |
e81c27
|
49 |
@property (copy, nonatomic) NSSet<NSString *> *grantedPermissions; |
bad748
|
50 |
|
9febd9
|
51 |
/** |
W |
52 |
the set of permissions declined by the user in the associated request. |
|
53 |
|
|
54 |
inspect the token's permissions set for a complete list. |
bad748
|
55 |
*/ |
e81c27
|
56 |
@property (copy, nonatomic) NSSet<NSString *> *declinedPermissions; |
bad748
|
57 |
|
9febd9
|
58 |
/** |
W |
59 |
Initializes a new instance. |
13e53a
|
60 |
@param token the access token |
H |
61 |
@param isCancelled whether the login was cancelled by the user |
|
62 |
@param grantedPermissions the set of granted permissions |
|
63 |
@param declinedPermissions the set of declined permissions |
bad748
|
64 |
*/ |
e81c27
|
65 |
- (instancetype)initWithToken:(nullable FBSDKAccessToken *)token |
bad748
|
66 |
isCancelled:(BOOL)isCancelled |
e81c27
|
67 |
grantedPermissions:(NSSet<NSString *> *)grantedPermissions |
H |
68 |
declinedPermissions:(NSSet<NSString *> *)declinedPermissions |
bad748
|
69 |
NS_DESIGNATED_INITIALIZER; |
W |
70 |
@end |
e81c27
|
71 |
|
H |
72 |
NS_ASSUME_NONNULL_END |