//
//  EZSaaSProgressHUD+EZSaaSCustom.m
//  Pods
//
//  Created by jinke5 on 2018/9/14.
//

#import "EZSaaSRTCProgressHUD+EZSaaSRTCCustom.h"

//#import "EZSaaSCategories.h"
//#import "EZSaaSCategoriesMacro.h"

@implementation EZSaaSRTCProgressHUD (EZSaaSRTCCustom)

+(void)showWithClearMaskAndNoDismiss:(NSString *)info
{
    [EZSaaSRTCProgressHUD setDefaultMaskType:EZSaaSRTCProgressHUDMaskTypeClear];
    [EZSaaSRTCProgressHUD setMinimumDismissTimeInterval:DISPATCH_TIME_FOREVER];
    [EZSaaSRTCProgressHUD showInfoWithStatus:info];
}

+(void)resetDefaultSettings
{
    [EZSaaSRTCProgressHUD dismiss];
    [EZSaaSRTCProgressHUD setDefaultMaskType:EZSaaSRTCProgressHUDMaskTypeNone];
    [EZSaaSRTCProgressHUD setBackgroundColor:[UIColor blackColor]];
    [EZSaaSRTCProgressHUD setForegroundColor:[UIColor whiteColor]];
    [EZSaaSRTCProgressHUD setMinimumDismissTimeInterval:2];
    [EZSaaSRTCProgressHUD setCornerRadius:5];
    
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnonnull"
    [EZSaaSRTCProgressHUD setInfoImage:nil];
    [EZSaaSRTCProgressHUD setSuccessImage:nil];
    [EZSaaSRTCProgressHUD setErrorImage:nil];
#pragma clang diagnostic pop

}

@end
