Files
real-e-party-iOS/YuMi/CustomUI/XNDJTDDLoadingTool.h
2025-10-17 14:52:29 +08:00

77 lines
1.6 KiB
Objective-C

// Created by YM on 2022/5/15.
// Copyright © 2023 YUMI. All rights reserved.
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface XNDJTDDLoadingTool : NSObject
+ (void)hideHUD;
+ (void)hideHUDInView:(nullable UIView *)view;
+(void)hideOnlyView:(UIView *)view;
+(void)showOnlyView:(UIView *)view;
+ (void)showSuccessWithMessage:(NSString *)message;
+ (void)showSuccessWithMessage:(NSString *)message inView:(nullable UIView *)view;
+ (void)showSuccessWithMessage:(NSString *)message inView:(nullable UIView *)view delay:(NSTimeInterval)afterDelay enabled:(BOOL)enabled;
+ (void)showErrorWithMessage:(NSString *)message;
+ (void)showErrorWithMessage:(NSString *)message inView:(nullable UIView *)view;
+ (void)showErrorWithMessage:(NSString *)message inView:(nullable UIView *)view delay:(NSTimeInterval)afterDelay enabled:(BOOL)enabled;
+ (void)showGIFLoading;
+ (void)showGIFLoadingInView:(nullable UIView *)view;
+ (void)showGIFLoadingInView:(nullable UIView *)view bgColor:(nullable UIColor *)bgColor enabled:(BOOL)enabled;
+ (void)showAnchorLoading;
+ (void)showAnchorLoading:(UIView *)view;
+ (void)showLoading;
+ (void)showLoadingInView:(nullable UIView *)view;
+ (void)showLoadingInView:(nullable UIView *)view enabled:(BOOL)enabled;
+ (void)showLoadingWithMessage:(NSString *)message;
+ (void)showLoadingWithMessage:(NSString *)message inView:(nullable UIView *)view;
+ (void)showLoadingWithMessage:(NSString *)message inView:(nullable UIView *)view enabled:(BOOL)enabled;
+(void)showOnlyView:(UIView *)view enabled:(BOOL)enabled;
@end
NS_ASSUME_NONNULL_END