VKAuthorizeController Class Reference

Inherits from UIViewController
Conforms to UIWebViewDelegate
Declared in VKAuthorizeController.h
VKAuthorizeController.m

Overview

Controller for authorization through webview (if VK app not available)

+ presentForAuthorizeWithAppId:andPermissions:revokeAccess:displayType:

Causes UIWebView in standard UINavigationController be presented in SDK delegate

+ (void)presentForAuthorizeWithAppId:(NSString *)appId andPermissions:(NSArray *)permissions revokeAccess:(BOOL)revoke displayType:(VKDisplayType)displayType

Parameters

appId

Identifier of VK application

permissions

Permissions that user specified for application

revoke

If YES, user will see permissions list and allow to logout (if logged in already)

displayType

Defines view of authorization screen

Discussion

Causes UIWebView in standard UINavigationController be presented in SDK delegate

Declared In

VKAuthorizeController.h

+ presentForValidation:

Causes UIWebView in standard UINavigationController be presented for user validation

+ (void)presentForValidation:(VKError *)validationError

Parameters

validationError

validation error returned by API

Discussion

Causes UIWebView in standard UINavigationController be presented for user validation

Declared In

VKAuthorizeController.h