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