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