//
//  LoadingFailedView.h
//  NaviDemo
//
//  Created by linbiao on 2019/5/10.
//  Copyright © 2019年 Baidu. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol LoadingFailedViewDelegate <NSObject>

- (void)retry;

@end

@interface LoadingFailedView : UIView

@property(nonatomic, weak)id<LoadingFailedViewDelegate> delegate;

- (void)updateFailedMessage:(NSString *)message withRetryButton:(BOOL)isShow;

- (void)updateFailedImage:(NSString *)imageName;

- (void)updateLayout;

- (void)hideIconView:(BOOL)hide;

@end

NS_ASSUME_NONNULL_END
