iOS SDK Version

AKFAccountKit

@interfaceAKFAccountKit:NSObject
Primary interface for authenticating AccountKit accounts.
  • The version of the Account Kit Graph API used.

    Declaration

    Objective-C
    @property(readonly,copy,nonatomic,class)NSString*_NonnullgraphVersionString;
    Swift
    classvargraphVersionString:String{get}
  • abstract The version of the Account Kit SDK.

    Declaration

    Objective-C
    @property(readonly,copy,nonatomic,class)NSString*_NonnullversionString;
    Swift
    classvarversionString:String{get}
  • Retrieve the current access token, if any.

    Declaration

    Objective-C
    @property(readonly,copy,nonatomic,nullable)id<AKFAccessToken>currentAccessToken;
    Swift
    @NSCopyingvarcurrentAccessToken:AKFAccessToken?{get}
  • Init Account Kit with a specified response type.

    Declaration

    Objective-C
    -(nonnullinstancetype)initWithResponseType:(AKFResponseType)responseType;
    Swift
    init(responseType:ResponseType)
  • Unavailable
    Undocumented

    Declaration

    Objective-C
    -(instancetype)initNS_UNAVAILABLE;
  • Unavailable
    Undocumented

    Declaration

    Objective-C
    +(instancetype)newNS_UNAVAILABLE;
  • Cancels the pending login request.

    Declaration

    Objective-C
    -(void)cancelLogin;
    Swift
    funccancelLogin()
  • Logs out currently logged in account.

    Declaration

    Objective-C
    -(void)logOut;
    Swift
    funclogOut()
  • Logs out currently logged in account asynchronously.

    Declaration

    Objective-C
    -(void)logOut:(nonnullAKFLogoutHandler)handler;
    Swift
    funclogOut(_handler:@escapingLogoutHandler)
  • Asynchronously returns Account Kit account information

    Declaration

    Objective-C
    -(void)requestAccount:(nonnullAKFRequestAccountHandler)handler;
    Swift
    funcrequestAccount(_handler:@escapingRequestAccountHandler)
  • Returns a view controller to be presented to initiate an email login.

    Declaration

    Objective-C
    -(nonnullUIViewController*)viewControllerForEmailLogin;
    Swift
    funcviewControllerForEmailLogin()->UIViewController
  • Returns a view controller to be presented to initiate an email login.

    Declaration

    Objective-C
    -(nonnullUIViewController*)viewControllerForEmailLoginWithEmail:(nullableNSString*)emailstate:(nullableNSString*)state;
    Swift
    funcviewControllerForEmailLogin(withemail:String?,state:String?)->UIViewController

    Parameters

    email
    the email to be used for login.
    state
    the state for the login request.
  • Returns a view controller to be presented to initiate a phone login.

    Declaration

    Objective-C
    -(nonnullUIViewController*)viewControllerForPhoneLogin;
    Swift
    funcviewControllerForPhoneLogin()->UIViewController
  • Returns a view controller to be presented to initiate a phone login.

    Declaration

    Objective-C
    -(nonnullUIViewController*)viewControllerForPhoneLoginWithPhoneNumber:(nullableAKFPhoneNumber*)phoneNumberstate:(nullableNSString*)state;
    Swift
    funcviewControllerForPhoneLogin(withphoneNumber:AKFPhoneNumber?,state:String?)->UIViewController

    Parameters

    phoneNumber
    the phone number to be used for login.
    state
    the state for the login request.
  • Returns a view controller to resume a login that was pending when the app shutdown.

    Declaration

    Objective-C
    -(nullableUIViewController*)viewControllerForLoginResume;
    Swift
    funcviewControllerForLoginResume()->UIViewController?