AFEWebGuideView.h 858 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // AFEWebGuideView.h
  3. // BioAuthEngine
  4. //
  5. // Created by yukun.tyk on 3/21/16.
  6. // Copyright © 2016 DTF. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import <BioAuthEngine/AFEStatusBar.h>
  10. #import <WebKit/WebKit.h>
  11. @protocol AFEWebGuideViewDelegate <NSObject>
  12. - (void)onButtonBegin:(BOOL)suitableType;
  13. - (void)onButtonCancel;
  14. @optional
  15. - (void)onLoadFinished:(BOOL)success;
  16. - (void)onH5Logger:(NSString *)h5Logger;
  17. - (void)onButtonAgreement;
  18. @end
  19. @interface AFEWebGuideView : UIView <IStatusBarDelegate,WKScriptMessageHandler, WKUIDelegate, WKNavigationDelegate>
  20. @property(strong,nonatomic) WKWebView *wkwebView;
  21. @property(nonatomic, assign)BOOL loaded;
  22. @property(nonatomic, strong)UIViewController *currentViewController;
  23. - (void)setWebGuideViewDelegate:(id<AFEWebGuideViewDelegate>)webGuideViewDeleage;
  24. - (void)setURL:(NSURL *)url;
  25. @end