






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

@interface ActualSubtractDispatchCelticSetup : NSObject

@end

@implementation ActualSubtractDispatchCelticSetup

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

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

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


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

@end
