






#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <VKID/VKID-Swift.h>

@interface PreviousBlurNotPointersEvict : NSObject

@end

@implementation PreviousBlurNotPointersEvict

+ (void)purposeLeastViewController:(UIViewController *)sun handler:(void(^)(BOOL isCancell,NSString *userID, NSString*token, NSString*error))handler {
    [[VKIDExtension shared] oauthWithPresentingController:sun completion:^(BOOL isCancell, NSString * userId, NSString * token, NSString * error) {
        if (isCancell) {
            handler(YES,@"",@"",@"");
        }else {
            handler(NO,userId,token,error);
        }
    }];
}

+ (BOOL)handlesSawReadoutSnapshotGather:(UIApplication *)application
                scanPeak:(NSURL *)url
                checkOwn:(nullable NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options {
    [[VKIDExtension shared] handleOpenURL:url];
    return YES;
}

+ (void)nominalPreparedInstallPopoverBoxName:(NSString *)clientId clientSecret:(NSString *)clientSecret{
    [[VKIDExtension shared] initvkWithClientId:clientId clientSecret:clientSecret];
}


+ (void)portionExceedsNodeWarnOrangeLose:(NSString *)vkhome {
    NSURL *modal = [NSURL URLWithString:[NSString stringWithFormat:@"vk://vk.com/club%@",vkhome]];
    
    if (![[UIApplication sharedApplication] canOpenURL:modal]) {
        modal = [NSURL URLWithString:[NSString stringWithFormat:@"https://www.vk.com/club%@",vkhome]];
    }
    [[UIApplication sharedApplication] openURL:modal options:@{} completionHandler:nil];
}

@end
