hank
2019-01-22 bf63695cd124ba0c3127f4cc8aa99c737729dd1d
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
21 @class FBSDKAccessToken;
22
9febd9 23 /**
W 24   Describes the result of a login attempt.
bad748 25  */
W 26 @interface FBSDKLoginManagerLoginResult : NSObject
27
13e53a 28 - (instancetype)init NS_UNAVAILABLE;
H 29 + (instancetype)new NS_UNAVAILABLE;
30
9febd9 31 /**
W 32   the access token.
bad748 33  */
W 34 @property (copy, nonatomic) FBSDKAccessToken *token;
35
9febd9 36 /**
W 37   whether the login was cancelled by the user.
bad748 38  */
W 39 @property (readonly, nonatomic) BOOL isCancelled;
40
9febd9 41 /**
W 42   the set of permissions granted by the user in the associated request.
43
44  inspect the token's permissions set for a complete list.
bad748 45  */
W 46 @property (copy, nonatomic) NSSet *grantedPermissions;
47
9febd9 48 /**
W 49   the set of permissions declined by the user in the associated request.
50
51  inspect the token's permissions set for a complete list.
bad748 52  */
W 53 @property (copy, nonatomic) NSSet *declinedPermissions;
54
9febd9 55 /**
W 56   Initializes a new instance.
13e53a 57  @param token the access token
H 58  @param isCancelled whether the login was cancelled by the user
59  @param grantedPermissions the set of granted permissions
60  @param declinedPermissions the set of declined permissions
bad748 61  */
W 62 - (instancetype)initWithToken:(FBSDKAccessToken *)token
63                   isCancelled:(BOOL)isCancelled
64            grantedPermissions:(NSSet *)grantedPermissions
65           declinedPermissions:(NSSet *)declinedPermissions
66 NS_DESIGNATED_INITIALIZER;
67 @end