BBALoadingView.h 1.66 KB
//
//  BBALoadingView.h
//  BBAPods
//
//  Created by guojin on 15/11/27.
//  Copyright © 2015年 Baidu. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    BBALoadingViewBlackModel = 0,
    BBALoadingViewWhiteBgModel = 1,
} BBALoadingViewBgModel;

typedef enum : NSUInteger {
    BBALoadingViewThemeLight = 0,
    BBALoadingViewThemeDark = 1,
} BBALoadingViewTheme;

@interface BBALoadingView : UIView

/// 在一个view上添加baidu logo滑动 loading的动画
/// 返回值 该view本身,如果加载完成,那么可以从父视图上删除
/// added by zhangjian
+ (id)showLogoLoadingViewOnSuperView:(UIView *)aView andBgModel:(BBALoadingViewBgModel)bgModel;

/// 可指定默认主题不随系统切换适配darkmode
+ (id)showLogoLoadingViewOnSuperView:(UIView *)aView bgModel:(BBALoadingViewBgModel)bgModel theme:(BBALoadingViewTheme)theme;

+ (id)showLogoLoadingViewOnSuperView:(UIView *)aView andBgModel:(BBALoadingViewBgModel)bgModel andNeedSystemCache:(BOOL)need;
+ (id)showLogoLoadingViewOnSuperView:(UIView *)aView andBgModel:(BBALoadingViewBgModel)bgModel andLogoImage:(UIImage *)imageForLogo andAnimatedImage:(UIImage *)imageForAnimation andNeedSystemCache:(BOOL)need;
/// 有背景的logo滑动View
/// 参数: aView 父视图;bgModel:黑色和白色两种 bgRect:大背景的frame,bgColor:大背景的颜色
/// 注意:bgRect 和 bgColor必须都有值,才会有这种大背景展现的效果。
/// added by zhangjian
+ (id)showLogoLoadingViewOnSuperView:(UIView *)aView andBgModel:(BBALoadingViewBgModel)bgModel andBgViewFrame:(CGRect)bgRect andBgColor:(UIColor *)bgColor;

- (void)showPrompt:(NSString *)prompt;

- (void)hidePrompt;
@end