AKFAccountKit
Há uma versão mais recente desta classe disponível. Confira. a versão mais recente.

Primary interface for authenticating AccountKit accounts.

Superclass:NSObject
Declared in:AKFAccountKit.h
Propriedades
currentAccessToken

Retrieve the current access token, if any.

@property (nullable, nonatomic, copy, readonly) id<AKFAccessToken> currentAccessToken;
Declarado em: AKFAccountKit.h
Métodos de classe
graphVersionString

The version of the Account Kit Graph API used.

+ (NSString *) graphVersionString;
Declarado em: AKFAccountKit.h
versionString
+ (NSString *) versionString;
Discussion:

abstract The version of the Account Kit SDK.

Declarado em: AKFAccountKit.h
Métodos da instância
accountPreferences

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

- (nullable AKFAccountPreferences *) accountPreferences;
Declarado em: AKFAccountKit.h
cancelLogin

Cancels the pending login request.

- (void) cancelLogin;
Declarado em: AKFAccountKit.h
initWithResponseType:

Init Account Kit with a specified response type.

- (instancetype)
initWithResponseType: (AKFResponseType)responseType
NS_DESIGNATED_INITIALIZER;
Declarado em: AKFAccountKit.h
logOut

Logs out currently logged in account.

- (void) logOut;
Declarado em: AKFAccountKit.h
requestAccount:

Asynchronously returns Account Kit account information

- (void) requestAccount:(AKFRequestAccountHandler)handler;
Declarado em: AKFAccountKit.h
viewControllerForEmailLogin

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

- (UIViewController<AKFViewController> *) viewControllerForEmailLogin;
Declarado em: AKFAccountKit.h
viewControllerForEmailLoginWithEmail:state:

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

ParâmetroDescrição
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;
Declarado em: AKFAccountKit.h
viewControllerForLoginResume

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

- (nullable UIViewController<AKFViewController> *) viewControllerForLoginResume;
Declarado em: AKFAccountKit.h
viewControllerForPhoneLogin

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

- (UIViewController<AKFViewController> *) viewControllerForPhoneLogin;
Declarado em: AKFAccountKit.h
viewControllerForPhoneLoginWithPhoneNumber:state:

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

ParâmetroDescrição
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;
Declarado em: AKFAccountKit.h
Typedefs
AKFRequestAccountHandler

Callback that receives AccountKit account information.

typedef void (^AKFRequestAccountHandler)(
id<AKFAccount> _Nullable account,
NSError *_Nullable error);
Declarado em: AKFAccountKit.h