File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1414 #define WVJB_PLATFORM_OSX
1515 #define WVJB_WEBVIEW_TYPE WebView
1616 #define WVJB_WEBVIEW_DELEGATE_TYPE NSObject <WebViewJavascriptBridgeBaseDelegate>
17+ #define WVJB_WEBVIEW_DELEGATE_INTERFACE NSObject <WebViewJavascriptBridgeBaseDelegate>
1718#elif defined __IPHONE_OS_VERSION_MAX_ALLOWED
1819 #import < UIKit/UIWebView.h>
1920 #define WVJB_PLATFORM_IOS
2021 #define WVJB_WEBVIEW_TYPE UIWebView
21- #define WVJB_WEBVIEW_DELEGATE_TYPE NSObject <UIWebViewDelegate, WebViewJavascriptBridgeBaseDelegate>
22+ #define WVJB_WEBVIEW_DELEGATE_TYPE NSObject <UIWebViewDelegate>
23+ #define WVJB_WEBVIEW_DELEGATE_INTERFACE NSObject <UIWebViewDelegate, WebViewJavascriptBridgeBaseDelegate>
2224#endif
2325
24- @interface WebViewJavascriptBridge : WVJB _WEBVIEW_DELEGATE_TYPE
26+ @interface WebViewJavascriptBridge : WVJB _WEBVIEW_DELEGATE_INTERFACE
2527
2628+ (instancetype )bridgeForWebView : (WVJB_WEBVIEW_TYPE*)webView handler : (WVJBHandler)handler ;
2729+ (instancetype )bridgeForWebView : (WVJB_WEBVIEW_TYPE*)webView webViewDelegate : (WVJB_WEBVIEW_DELEGATE_TYPE*)webViewDelegate handler : (WVJBHandler)handler ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ typedef NSDictionary WVJBMessage;
2020
2121@interface WebViewJavascriptBridgeBase : NSObject
2222
23+
2324@property (assign ) id <WebViewJavascriptBridgeBaseDelegate> delegate;
2425@property (strong , nonatomic ) NSMutableArray * startupMessageQueue;
2526@property (strong , nonatomic ) NSMutableDictionary * responseCallbacks;
You can’t perform that action at this time.
0 commit comments