mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
34
iphone/Maps/Common/WebViewController.h
Normal file
34
iphone/Maps/Common/WebViewController.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#import <WebKit/WebKit.h>
|
||||
#import "MWMViewController.h"
|
||||
#import <CoreApi/MWMTypes.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
typedef void (^WebViewControllerWillLoadBlock)(BOOL, NSDictionary<NSString *, NSString *> * _Nullable);
|
||||
|
||||
@interface WebViewController : MWMViewController <WKNavigationDelegate>
|
||||
|
||||
@property (nonatomic) NSURL * _Nullable m_url;
|
||||
@property (copy, nonatomic) NSString * _Nullable m_htmlText;
|
||||
// Set to YES if external browser should be launched
|
||||
@property (nonatomic) BOOL openInSafari;
|
||||
@property (nonatomic, readonly) WKWebView * webView;
|
||||
|
||||
- (instancetype _Nullable)initWithUrl:(NSURL *)url title:( NSString * _Nullable)title;
|
||||
- (instancetype _Nullable)initWithHtml:(NSString *)htmlText
|
||||
baseUrl:(NSURL * _Nullable)url
|
||||
title:(NSString * _Nullable)title;
|
||||
- (instancetype _Nullable)initWithAuthURL:(NSURL *)url
|
||||
onSuccessAuth:(MWMStringBlock _Nullable)success
|
||||
onFailure:(MWMVoidBlock _Nullable)failure;
|
||||
- (void)willLoadUrl:(WebViewControllerWillLoadBlock)decisionHandler;
|
||||
- (BOOL)shouldAddAccessToken;
|
||||
- (void)forward;
|
||||
- (void)back;
|
||||
- (void)reloadFromOrigin;
|
||||
- (NSString *)configuredHtmlWithText:(NSString *)htmlText;
|
||||
- (void)performURLRequest;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user