AKFAccountKit
这个类有新版本。查看 最新版本。

Primary interface for authenticating AccountKit accounts.

Superclass:NSObject
Declared in:AKFAccountKit.h
属性
currentAccessToken

Retrieve the current access token, if any.

@property (nullable, nonatomic, copy, readonly) id<AKFAccessToken> currentAccessToken;
声明语言: AKFAccountKit.h
类方法
graphVersionString

The version of the Account Kit Graph API used.

+ (NSString *) graphVersionString;
声明语言: AKFAccountKit.h
versionString
+ (NSString *) versionString;
Discussion:

abstract The version of the Account Kit SDK.

声明语言: AKFAccountKit.h
实例方法
accountPreferences

Returns an instance of account preferences for the current access token.

- (nullable AKFAccountPreferences *) accountPreferences;
声明语言: AKFAccountKit.h
cancelLogin

Cancels the pending login request.

- (void) cancelLogin;
声明语言: AKFAccountKit.h
initWithResponseType:

Init Account Kit with a specified response type.

- (instancetype)
initWithResponseType: (AKFResponseType)responseType
NS_DESIGNATED_INITIALIZER;
声明语言: AKFAccountKit.h
logOut

Logs out currently logged in account.

- (void) logOut;
声明语言: AKFAccountKit.h
requestAccount:

Asynchronously returns Account Kit account information

- (void) requestAccount:(AKFRequestAccountHandler)handler;
声明语言: AKFAccountKit.h
viewControllerForEmailLogin

Returns a view controller to be presented to initiate an email login.

- (UIViewController<AKFViewController> *) viewControllerForEmailLogin;
声明语言: AKFAccountKit.h
viewControllerForEmailLoginWithEmail:state:

Returns a view controller to be presented to initiate an email login.

参数描述
email

The email to be used for login.

state

The state for the login request.

- (UIViewController<AKFViewController> *)
viewControllerForEmailLoginWithEmail: (nullable NSString *)email
state: (nullable NSString *)state;
声明语言: AKFAccountKit.h
viewControllerForLoginResume

Returns a view controller to resume a login that was pending when the app shutdown.

- (nullable UIViewController<AKFViewController> *) viewControllerForLoginResume;
声明语言: AKFAccountKit.h
viewControllerForPhoneLogin

Returns a view controller to be presented to initiate a phone login.

- (UIViewController<AKFViewController> *) viewControllerForPhoneLogin;
声明语言: AKFAccountKit.h
viewControllerForPhoneLoginWithPhoneNumber:state:

Returns a view controller to be presented to initiate a phone login.

参数描述
phoneNumber

The phone number to be used for login.

state

The state for the login request.

- (UIViewController<AKFViewController> *)
viewControllerForPhoneLoginWithPhoneNumber: (nullable AKFPhoneNumber *)phoneNumber
state: (nullable NSString *)state;
声明语言: AKFAccountKit.h
Typedef
AKFRequestAccountHandler

Callback that receives AccountKit account information.

typedef void (^AKFRequestAccountHandler)(
id<AKFAccount> _Nullable account,
NSError *_Nullable error);
声明语言: AKFAccountKit.h