|
@@ -13,18 +13,18 @@
|
13
|
13
|
|
14
|
14
|
@protocol RNCWebViewDelegate <NSObject>
|
15
|
15
|
|
16
|
|
-- (BOOL)webView:(RNCWebView *)webView
|
17
|
|
- shouldStartLoadForRequest:(NSMutableDictionary<NSString *, id> *)request
|
18
|
|
- withCallback:(RCTDirectEventBlock)callback;
|
|
16
|
+- (BOOL)webView:(RNCWebView *_Nonnull)webView
|
|
17
|
+ shouldStartLoadForRequest:(NSMutableDictionary<NSString *, id> *_Nonnull)request
|
|
18
|
+ withCallback:(RCTDirectEventBlock _Nonnull)callback;
|
19
|
19
|
|
20
|
20
|
@end
|
21
|
21
|
|
22
|
22
|
@interface RNCWebView : RCTView
|
23
|
23
|
|
24
|
|
-@property (nonatomic, weak) id<RNCWebViewDelegate> delegate;
|
25
|
|
-@property (nonatomic, copy) NSDictionary *source;
|
|
24
|
+@property (nonatomic, weak) id<RNCWebViewDelegate> _Nullable delegate;
|
|
25
|
+@property (nonatomic, copy) NSDictionary * _Nullable source;
|
26
|
26
|
@property (nonatomic, assign) BOOL messagingEnabled;
|
27
|
|
-@property (nonatomic, copy) NSString *injectedJavaScript;
|
|
27
|
+@property (nonatomic, copy) NSString * _Nullable injectedJavaScript;
|
28
|
28
|
@property (nonatomic, assign) BOOL scrollEnabled;
|
29
|
29
|
@property (nonatomic, assign) BOOL sharedCookiesEnabled;
|
30
|
30
|
@property (nonatomic, assign) BOOL pagingEnabled;
|
|
@@ -42,20 +42,20 @@
|
42
|
42
|
@property (nonatomic, assign) BOOL allowsBackForwardNavigationGestures;
|
43
|
43
|
@property (nonatomic, assign) BOOL incognito;
|
44
|
44
|
@property (nonatomic, assign) BOOL useSharedProcessPool;
|
45
|
|
-@property (nonatomic, copy) NSString *userAgent;
|
46
|
|
-@property (nonatomic, copy) NSString *applicationNameForUserAgent;
|
|
45
|
+@property (nonatomic, copy) NSString * _Nullable userAgent;
|
|
46
|
+@property (nonatomic, copy) NSString * _Nullable applicationNameForUserAgent;
|
47
|
47
|
@property (nonatomic, assign) BOOL cacheEnabled;
|
48
|
48
|
@property (nonatomic, assign) BOOL javaScriptEnabled;
|
49
|
49
|
@property (nonatomic, assign) BOOL allowsLinkPreview;
|
50
|
50
|
@property (nonatomic, assign) BOOL showsHorizontalScrollIndicator;
|
51
|
51
|
@property (nonatomic, assign) BOOL showsVerticalScrollIndicator;
|
52
|
52
|
@property (nonatomic, assign) BOOL directionalLockEnabled;
|
53
|
|
-@property (nonatomic, copy) NSString *allowingReadAccessToURL;
|
|
53
|
+@property (nonatomic, copy) NSString * _Nullable allowingReadAccessToURL;
|
54
|
54
|
|
55
|
55
|
+ (void)setClientAuthenticationCredential:(nullable NSURLCredential*)credential;
|
56
|
56
|
+ (void)setCustomCertificatesForHost:(nullable NSDictionary *)certificates;
|
57
|
|
-- (void)postMessage:(NSString *)message;
|
58
|
|
-- (void)injectJavaScript:(NSString *)script;
|
|
57
|
+- (void)postMessage:(NSString *_Nullable)message;
|
|
58
|
+- (void)injectJavaScript:(NSString *_Nullable)script;
|
59
|
59
|
- (void)goForward;
|
60
|
60
|
- (void)goBack;
|
61
|
61
|
- (void)reload;
|