//
//  NewsWebViewController.h
//  Open
//
//  Created by 雷俊博 on 2021/1/29.
//  Copyright © 2021 黄江涛 . All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JHNewsModel.h"

NS_ASSUME_NONNULL_BEGIN
@class NewsWebViewController;
@protocol NewsWebViewControllerDelegate <NSObject>
//第一次加载完成返回总高度和当前时间戳(精确到秒)
- (void)kkNewsDetailViewControllerDidFirstFinishLoad:(NewsWebViewController *)vc withTime:(NSString *)timeStr;

//控制器关闭返回当前时间戳
- (void)kkNewsDetailViewControllerDidClose:(NewsWebViewController *)vc withTime:(NSString *)timeStr;




@end


@interface NewsWebViewController : UIViewController

@property (nonatomic, copy)NSString *url;

@property (nonatomic, copy)NSString* from;

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

@property (nonatomic, strong)JHNewsModel *model;

@end

NS_ASSUME_NONNULL_END
