AKFViewControllerDelegate
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

Receives callbacks from the View Controller when the login flow completes.

Extends Protocol:NSObject
Declared in:AKFViewController.h
인스턴스 메서드
viewController:didCompleteLoginWithAccessToken:state:

Called when the login completes with an access token response type.

매개변수설명
viewController

The AKFViewController that was used

accessToken

The access token for the logged in account

state

The state param value that was passed in at the beginning of the flow

- (void)
viewController: (UIViewController<AKFViewController> *)viewController
didCompleteLoginWithAccessToken: (id<AKFAccessToken>)accessToken
state: (NSString *)state;
정의된 값: AKFViewController.h
viewController:didCompleteLoginWithAuthorizationCode:state:

Called when the login completes with an authorization code response type.

매개변수설명
viewController

The AKFViewController that was used

code

The authorization code that can be exchanged for an access token with the app secret

state

The state param value that was passed in at the beginning of the flow

- (void)
viewController: (UIViewController<AKFViewController> *)viewController
didCompleteLoginWithAuthorizationCode: (NSString *)code
state: (NSString *)state;
정의된 값: AKFViewController.h
viewController:didFailWithError:

Called when the login failes with an error

매개변수설명
viewController

The AKFViewController that was used

error

The error that occurred

- (void)
viewController: (UIViewController<AKFViewController> *)viewController
didFailWithError: (NSError *)error;
정의된 값: AKFViewController.h
viewControllerDidCancel:

Called when the login flow is cancelled through the UI.

매개변수설명
viewController

The AKFViewController that was used

- (void) viewControllerDidCancel:(UIViewController<AKFViewController> *)viewController;
정의된 값: AKFViewController.h