//
//  EMPToast.h
//  MintLive
//
//  Created by yanruichen on 2017/3/13.
//  Copyright © 2017年 NetEase. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^EMPToastProgressBlock)(CGFloat progress);

@interface NvToast : NSObject

//以下方法会拦截用户交互
+ (void)showLoading;
+ (void)showLoadingWithMessage:(NSString *)message;
+ (void)showLoadingInView:(UIView *)view;
+ (void)showLoadingInView:(UIView *)view message:(NSString *)message interaction:(BOOL)interaction;
+ (void)dismiss;
+ (void)dismissInView:(UIView *)view;
+ (void)dismissAniamted:(BOOL)aniamted;
+ (void)dismissInView:(UIView *)view animated:(BOOL)animated;
+ (EMPToastProgressBlock)showProgressWithMessage:(NSString *)message;

//以下方法不拦截交互
+ (void)showInfoWithMessage:(NSString *)message;
+ (void)showSuccessWithMessage:(NSString *)message;
+ (void)showErrorWithMessage:(NSString *)message;

+ (void)showInfoWithMessage:(NSString *)message inView:(UIView *)view;
+ (void)dismissAniamted:(BOOL)aniamted inView:(UIView *)view;

@end
