VKConnectorDelegate Protocol Reference
Conforms to | NSObject |
Declared in | VKConnector.h |
Overview
Protocol incapsulates methods that are triggered during user authorization process or access token status changes.
Tasks
Show/hide web view
-
– VKConnector:willShowWebView:
Method is called when user needs to perform some action (enter login and password, authorize your application etc)
-
– VKConnector:willHideWebView:
Method is called when UIWebView should be hidden, this method is called after user has entered login+password or has authorized an application (or pressed cancel button etc).
Access token
-
– VKConnector:accessTokenRenewalSucceeded:
Method is called when access token is successfully updated
-
– VKConnector:accessTokenRenewalFailed:
Method is called when access token failed to be updated. The main reason could be that user denied/canceled to authorize your application.
Connection & Parsing
-
– VKConnector:connectionErrorOccured:
Method is called when connection error occurred during authorization process.
-
– VKConnector:applicationWasDeleted:
Method is called if VK application was deleted.
Instance Methods
VKConnector:accessTokenRenewalFailed:
Method is called when access token failed to be updated. The main reason could be that user denied/canceled to authorize your application.
- (void)VKConnector:(VKConnector *)connector accessTokenRenewalFailed:(VKAccessToken *)accessToken
Parameters
- connector
VKConnector instance that sends notifications
- accessToken
access token (equals to nil)
Declared In
VKConnector.h
VKConnector:accessTokenRenewalSucceeded:
Method is called when access token is successfully updated
- (void)VKConnector:(VKConnector *)connector accessTokenRenewalSucceeded:(VKAccessToken *)accessToken
Declared In
VKConnector.h
VKConnector:applicationWasDeleted:
Method is called if VK application was deleted.
- (void)VKConnector:(VKConnector *)connector applicationWasDeleted:(NSError *)error
Declared In
VKConnector.h
VKConnector:connectionErrorOccured:
Method is called when connection error occurred during authorization process.
- (void)VKConnector:(VKConnector *)connector connectionErrorOccured:(NSError *)error
Declared In
VKConnector.h
VKConnector:willHideWebView:
Method is called when UIWebView should be hidden, this method is called after user has entered login+password or has authorized an application (or pressed cancel button etc).
- (void)VKConnector:(VKConnector *)connector willHideWebView:(UIWebView *)webView
Parameters
- connector
VKConnector instance that sends notifications
- webView
UIWebView that displays authorization page and needs to be hidden
Declared In
VKConnector.h
VKConnector:willShowWebView:
Method is called when user needs to perform some action (enter login and password, authorize your application etc)
- (void)VKConnector:(VKConnector *)connector willShowWebView:(UIWebView *)webView
Parameters
- connector
VKConnector instance that sends notifications
- webView
UIWebView that displays authorization page
Declared In
VKConnector.h