FLEXWebViewController.h 920 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // FLEXWebViewController.m
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 6/10/14.
  6. // Copyright (c) 2020 FLEX Team. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #if TARGET_OS_TV
  10. @protocol KBWebViewDelegate;
  11. @interface KBWebView: UIView
  12. @property (nullable, nonatomic, assign) id <KBWebViewDelegate> delegate;
  13. - (void)loadRequest:(NSURLRequest *)request;
  14. - (void)loadHTMLString:(NSString *)string baseURL:(nullable NSURL *)baseURL;
  15. - (void)loadData:(NSData *)data MIMEType:(NSString *)MIMEType textEncodingName:(NSString *)textEncodingName baseURL:(NSURL *)baseURL;
  16. @property (nullable, nonatomic, readonly, strong) NSURLRequest *request;
  17. - (void)reload;
  18. - (void)stopLoading;
  19. - (void)goBack;
  20. - (void)goForward;
  21. @end
  22. #endif
  23. @interface FLEXWebViewController : UIViewController
  24. - (id)initWithURL:(NSURL *)url;
  25. - (id)initWithText:(NSString *)text;
  26. + (BOOL)supportsPathExtension:(NSString *)extension;
  27. @end