react-native-minimal-webview 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +130 -2
  3. package/android/build.gradle +26 -0
  4. package/android/consumer-rules.pro +4 -0
  5. package/android/src/main/AndroidManifest.xml +2 -0
  6. package/android/src/main/java/expo/modules/minimalwebview/Asks.kt +44 -0
  7. package/android/src/main/java/expo/modules/minimalwebview/DocumentEnd.kt +31 -0
  8. package/android/src/main/java/expo/modules/minimalwebview/Hooks.kt +496 -0
  9. package/android/src/main/java/expo/modules/minimalwebview/MinimalWebView.kt +510 -0
  10. package/android/src/main/java/expo/modules/minimalwebview/MinimalWebViewClients.kt +359 -0
  11. package/android/src/main/java/expo/modules/minimalwebview/MinimalWebViewModule.kt +245 -0
  12. package/android/src/main/java/expo/modules/minimalwebview/MinimalWebViewNavigation.kt +199 -0
  13. package/android/src/main/java/expo/modules/minimalwebview/MinimalWebViewScripts.kt +191 -0
  14. package/android/src/main/java/expo/modules/minimalwebview/NavigationRules.kt +113 -0
  15. package/android/src/main/java/expo/modules/minimalwebview/PlatformSettings.kt +306 -0
  16. package/android/src/main/java/expo/modules/minimalwebview/PullToRefresh.kt +76 -0
  17. package/android/src/main/java/expo/modules/minimalwebview/requests/Downloads.kt +258 -0
  18. package/android/src/main/java/expo/modules/minimalwebview/requests/FileUpload.kt +44 -0
  19. package/android/src/main/java/expo/modules/minimalwebview/requests/FullscreenVideo.kt +87 -0
  20. package/android/src/main/java/expo/modules/minimalwebview/requests/Permissions.kt +77 -0
  21. package/build/WebView.d.ts +99 -0
  22. package/build/WebView.d.ts.map +1 -0
  23. package/build/WebView.js +448 -0
  24. package/build/WebView.js.map +1 -0
  25. package/build/bridge/createBridge.d.ts +32 -0
  26. package/build/bridge/createBridge.d.ts.map +1 -0
  27. package/build/bridge/createBridge.js +135 -0
  28. package/build/bridge/createBridge.js.map +1 -0
  29. package/build/bridge/endpoint.d.ts +35 -0
  30. package/build/bridge/endpoint.d.ts.map +1 -0
  31. package/build/bridge/endpoint.js +100 -0
  32. package/build/bridge/endpoint.js.map +1 -0
  33. package/build/bridge/origins.d.ts +25 -0
  34. package/build/bridge/origins.d.ts.map +1 -0
  35. package/build/bridge/origins.js +60 -0
  36. package/build/bridge/origins.js.map +1 -0
  37. package/build/bridge/pageClient.generated.d.ts +3 -0
  38. package/build/bridge/pageClient.generated.d.ts.map +1 -0
  39. package/build/bridge/pageClient.generated.js +4 -0
  40. package/build/bridge/pageClient.generated.js.map +1 -0
  41. package/build/bridge/protocol.d.ts +50 -0
  42. package/build/bridge/protocol.d.ts.map +1 -0
  43. package/build/bridge/protocol.js +52 -0
  44. package/build/bridge/protocol.js.map +1 -0
  45. package/build/defaultNavigationRules.d.ts +16 -0
  46. package/build/defaultNavigationRules.d.ts.map +1 -0
  47. package/build/defaultNavigationRules.js +23 -0
  48. package/build/defaultNavigationRules.js.map +1 -0
  49. package/build/index.d.ts +31 -0
  50. package/build/index.d.ts.map +1 -0
  51. package/build/index.js +30 -0
  52. package/build/index.js.map +1 -0
  53. package/build/platform.generated.d.ts +702 -0
  54. package/build/platform.generated.d.ts.map +1 -0
  55. package/build/platform.generated.js +199 -0
  56. package/build/platform.generated.js.map +1 -0
  57. package/build/reactNativeWebViewDefaults.d.ts +21 -0
  58. package/build/reactNativeWebViewDefaults.d.ts.map +1 -0
  59. package/build/reactNativeWebViewDefaults.js +12 -0
  60. package/build/reactNativeWebViewDefaults.js.map +1 -0
  61. package/build/reactNativeWebViewMessages.d.ts +22 -0
  62. package/build/reactNativeWebViewMessages.d.ts.map +1 -0
  63. package/build/reactNativeWebViewMessages.js +30 -0
  64. package/build/reactNativeWebViewMessages.js.map +1 -0
  65. package/build/refStore.d.ts +31 -0
  66. package/build/refStore.d.ts.map +1 -0
  67. package/build/refStore.js +113 -0
  68. package/build/refStore.js.map +1 -0
  69. package/build/types.d.ts +1127 -0
  70. package/build/types.d.ts.map +1 -0
  71. package/build/types.defaults.d.ts +8 -0
  72. package/build/types.defaults.d.ts.map +1 -0
  73. package/build/types.defaults.js +17 -0
  74. package/build/types.defaults.js.map +1 -0
  75. package/build/types.js +2 -0
  76. package/build/types.js.map +1 -0
  77. package/expo-module.config.json +9 -0
  78. package/ios/Asks.swift +45 -0
  79. package/ios/DelegateProxy.swift +162 -0
  80. package/ios/DocumentEnd.swift +23 -0
  81. package/ios/DownloadName.swift +12 -0
  82. package/ios/Downloads.swift +51 -0
  83. package/ios/Hooks.swift +308 -0
  84. package/ios/Loads.swift +44 -0
  85. package/ios/MRWExceptions.h +9 -0
  86. package/ios/MRWExceptions.m +10 -0
  87. package/ios/MRWInvoke.h +23 -0
  88. package/ios/MRWInvoke.m +187 -0
  89. package/ios/MinimalWebView+Dialogs.swift +99 -0
  90. package/ios/MinimalWebView+Navigation.swift +244 -0
  91. package/ios/MinimalWebView+Scripts.swift +92 -0
  92. package/ios/MinimalWebView.docc/MinimalWebView.md +13 -0
  93. package/ios/MinimalWebView.podspec +32 -0
  94. package/ios/MinimalWebView.swift +512 -0
  95. package/ios/MinimalWebViewModule.swift +110 -0
  96. package/ios/NavigationRules.swift +123 -0
  97. package/ios/OriginRules.swift +35 -0
  98. package/ios/PlatformCompletions.generated.swift +39 -0
  99. package/ios/PlatformSettings.swift +247 -0
  100. package/ios/ReadAccess.swift +19 -0
  101. package/ios/Recovery.swift +25 -0
  102. package/ios/SharedCookies.swift +59 -0
  103. package/package.json +94 -4
  104. package/src/WebView.tsx +623 -0
  105. package/src/bridge/createBridge.ts +176 -0
  106. package/src/bridge/endpoint.ts +119 -0
  107. package/src/bridge/origins.ts +62 -0
  108. package/src/bridge/pageClient.generated.ts +5 -0
  109. package/src/bridge/pageClient.ts +68 -0
  110. package/src/bridge/protocol.ts +78 -0
  111. package/src/defaultNavigationRules.ts +25 -0
  112. package/src/index.ts +37 -0
  113. package/src/platform.generated.ts +694 -0
  114. package/src/reactNativeWebViewDefaults.ts +13 -0
  115. package/src/reactNativeWebViewMessages.ts +32 -0
  116. package/src/refStore.ts +164 -0
  117. package/src/types.defaults.ts +24 -0
  118. package/src/types.ts +1194 -0
@@ -0,0 +1,702 @@
1
+ /**
2
+ * An iOS struct the settings channel carries as an object.
3
+ * @group Platform settings
4
+ * @ios
5
+ */
6
+ export type UIEdgeInsets = {
7
+ top: number;
8
+ left: number;
9
+ bottom: number;
10
+ right: number;
11
+ };
12
+ /**
13
+ * An iOS struct the settings channel carries as an object.
14
+ * @group Platform settings
15
+ * @ios
16
+ */
17
+ export type CGPoint = {
18
+ x: number;
19
+ y: number;
20
+ };
21
+ /**
22
+ * An iOS struct the settings channel carries as an object.
23
+ * @group Platform settings
24
+ * @ios
25
+ */
26
+ export type CGSize = {
27
+ width: number;
28
+ height: number;
29
+ };
30
+ /**
31
+ * An iOS struct the settings channel carries as an object.
32
+ * @group Platform settings
33
+ * @ios
34
+ */
35
+ export type CGRect = {
36
+ x: number;
37
+ y: number;
38
+ width: number;
39
+ height: number;
40
+ };
41
+ /**
42
+ * The iOS settings keys by root: the writable WebKit and UIScrollView properties the settings channel can carry, from
43
+ * the SDK headers.
44
+ *
45
+ * A key a newer SDK adds goes under the root's `other`.
46
+ * @group Platform settings
47
+ * @ios
48
+ */
49
+ export type IOSSettingKeys = {
50
+ /** `WKWebViewConfiguration` */
51
+ configuration: {
52
+ /** @since iOS 9.0 */
53
+ websiteDataStore?: 'default' | 'nonPersistent';
54
+ suppressesIncrementalRendering?: boolean;
55
+ /** @since iOS 9.0 */
56
+ applicationNameForUserAgent?: string | null;
57
+ /** @since iOS 9.0 */
58
+ allowsAirPlayForMediaPlayback?: boolean;
59
+ /** @since iOS 26.0 */
60
+ showsSystemScreenTimeBlockingView?: boolean;
61
+ /** @since iOS 14.5 */
62
+ upgradeKnownHostsToHTTPS?: boolean;
63
+ /**
64
+ * A {@link IOSConstants.AudiovisualMediaTypes}.
65
+ * @since iOS 10.0
66
+ */
67
+ mediaTypesRequiringUserActionForPlayback?: number;
68
+ /** @since iOS 14.0 */
69
+ limitsNavigationsToAppBoundDomains?: boolean;
70
+ /** @since iOS 17.0 */
71
+ allowsInlinePredictions?: boolean;
72
+ allowsInlineMediaPlayback?: boolean;
73
+ /**
74
+ * A {@link IOSConstants.SelectionGranularity}.
75
+ * @since iOS 8.0
76
+ * @deprecated This property is ignored; selection granularity is always `character`.
77
+ */
78
+ selectionGranularity?: number;
79
+ /** @since iOS 9.0 */
80
+ allowsPictureInPictureMediaPlayback?: boolean;
81
+ /**
82
+ * A {@link IOSConstants.DataDetectorTypes}.
83
+ * @since iOS 10.0
84
+ */
85
+ dataDetectorTypes?: number;
86
+ /** @since iOS 10.0 */
87
+ ignoresViewportScaleLimits?: boolean;
88
+ /** @since iOS 18.0 */
89
+ supportsAdaptiveImageGlyph?: boolean;
90
+ /** @since iOS 18.0 */
91
+ writingToolsBehavior?: number;
92
+ /**
93
+ * @since iOS 8.0
94
+ * @deprecated use mediaTypesRequiringUserActionForPlayback
95
+ */
96
+ mediaPlaybackRequiresUserAction?: boolean;
97
+ /**
98
+ * @since iOS 8.0
99
+ * @deprecated use allowsAirPlayForMediaPlayback
100
+ */
101
+ mediaPlaybackAllowsAirPlay?: boolean;
102
+ /**
103
+ * @since iOS 9.0
104
+ * @deprecated use mediaTypesRequiringUserActionForPlayback
105
+ */
106
+ requiresUserActionForMediaPlayback?: boolean;
107
+ };
108
+ /** `WKPreferences` */
109
+ preferences: {
110
+ minimumFontSize?: number;
111
+ javaScriptCanOpenWindowsAutomatically?: boolean;
112
+ /** @since iOS 13.0 */
113
+ fraudulentWebsiteWarningEnabled?: boolean;
114
+ /** @since iOS 16.4 */
115
+ shouldPrintBackgrounds?: boolean;
116
+ /** @since iOS 14.5 */
117
+ textInteractionEnabled?: boolean;
118
+ /** @since iOS 15.4 */
119
+ siteSpecificQuirksModeEnabled?: boolean;
120
+ /** @since iOS 15.4 */
121
+ elementFullscreenEnabled?: boolean;
122
+ /**
123
+ * A {@link IOSConstants.InactiveSchedulingPolicy}.
124
+ * @since iOS 17.0
125
+ */
126
+ inactiveSchedulingPolicy?: number;
127
+ /**
128
+ * @since iOS 8.0
129
+ * @deprecated Use WKWebpagePreferences.allowsContentJavaScript to disable content JavaScript on a per-navigation basis
130
+ */
131
+ javaScriptEnabled?: boolean;
132
+ };
133
+ /** `WKWebpagePreferences` */
134
+ webpagePreferences: {
135
+ /**
136
+ * A {@link IOSConstants.ContentMode}.
137
+ * @since iOS 13.0
138
+ */
139
+ preferredContentMode?: number;
140
+ /** @since iOS 14.0 */
141
+ allowsContentJavaScript?: boolean;
142
+ /** @since iOS 16.0 */
143
+ lockdownModeEnabled?: boolean;
144
+ /**
145
+ * A {@link IOSConstants.WebpagePreferencesUpgradeToHTTPSPolicy}.
146
+ * @since iOS 18.2
147
+ */
148
+ preferredHTTPSNavigationPolicy?: number;
149
+ /**
150
+ * A {@link IOSConstants.SecurityRestrictionMode}.
151
+ * @since iOS 26.4
152
+ */
153
+ securityRestrictionMode?: number;
154
+ /** @since iOS 27.0 */
155
+ overrideReferrer?: string | null;
156
+ /** @since iOS 27.0 */
157
+ allowsJSHandleCreationInPageWorld?: boolean;
158
+ /** @since iOS 27.0 */
159
+ globalPrivacyControlEnabled?: boolean;
160
+ };
161
+ /** `WKWebView` */
162
+ webView: {
163
+ allowsBackForwardNavigationGestures?: boolean;
164
+ /** @since iOS 9.0 */
165
+ customUserAgent?: string | null;
166
+ /** @since iOS 9.0 */
167
+ allowsLinkPreview?: boolean;
168
+ /** @since iOS 14.0 */
169
+ pageZoom?: number;
170
+ /** @since iOS 14.0 */
171
+ mediaType?: string | null;
172
+ /** @since iOS 15.0 */
173
+ underPageBackgroundColor?: string | null;
174
+ /** @since iOS 16.0 */
175
+ findInteractionEnabled?: boolean;
176
+ /** @since iOS 16.4 */
177
+ inspectable?: boolean;
178
+ /** @since iOS 26.0 */
179
+ obscuredContentInsets?: UIEdgeInsets;
180
+ };
181
+ /** `UIScrollView` */
182
+ scrollView: {
183
+ contentOffset?: CGPoint;
184
+ contentSize?: CGSize;
185
+ contentInset?: UIEdgeInsets;
186
+ /** @since iOS 17.4 */
187
+ contentAlignmentPoint?: CGPoint;
188
+ /**
189
+ * A {@link IOSConstants.ContentInsetAdjustmentBehavior}.
190
+ * @since iOS 11.0
191
+ */
192
+ contentInsetAdjustmentBehavior?: number;
193
+ /** @since iOS 13.0 */
194
+ automaticallyAdjustsScrollIndicatorInsets?: boolean;
195
+ directionalLockEnabled?: boolean;
196
+ bounces?: boolean;
197
+ /** @since iOS 17.4 */
198
+ bouncesHorizontally?: boolean;
199
+ /** @since iOS 17.4 */
200
+ bouncesVertically?: boolean;
201
+ alwaysBounceVertical?: boolean;
202
+ alwaysBounceHorizontal?: boolean;
203
+ pagingEnabled?: boolean;
204
+ scrollEnabled?: boolean;
205
+ /** @since iOS 17.4 */
206
+ transfersHorizontalScrollingToParent?: boolean;
207
+ /** @since iOS 17.4 */
208
+ transfersVerticalScrollingToParent?: boolean;
209
+ showsVerticalScrollIndicator?: boolean;
210
+ showsHorizontalScrollIndicator?: boolean;
211
+ /** A {@link IOSConstants.IndicatorStyle}. */
212
+ indicatorStyle?: number;
213
+ /** @since iOS 11.1 */
214
+ verticalScrollIndicatorInsets?: UIEdgeInsets;
215
+ /** @since iOS 11.1 */
216
+ horizontalScrollIndicatorInsets?: UIEdgeInsets;
217
+ scrollIndicatorInsets?: UIEdgeInsets;
218
+ /** @since iOS 3.0 */
219
+ decelerationRate?: number;
220
+ delaysContentTouches?: boolean;
221
+ canCancelContentTouches?: boolean;
222
+ minimumZoomScale?: number;
223
+ maximumZoomScale?: number;
224
+ /** @since iOS 3.0 */
225
+ zoomScale?: number;
226
+ bouncesZoom?: boolean;
227
+ scrollsToTop?: boolean;
228
+ /**
229
+ * A {@link IOSConstants.KeyboardDismissMode}.
230
+ * @since iOS 7.0
231
+ */
232
+ keyboardDismissMode?: number;
233
+ /** @since iOS 17.0 */
234
+ allowsKeyboardScrolling?: boolean;
235
+ };
236
+ };
237
+ /**
238
+ * The Android settings keys by root: the one-argument `WebSettings`, `WebView` and `CookieManager` setters, then
239
+ * `WebSettingsCompat`'s and `WebViewCompat`'s statics, then the scroll setters `WebView` inherits from `View`.
240
+ *
241
+ * A key a newer SDK or androidx.webkit adds goes under the root's `other`.
242
+ * @group Platform settings
243
+ * @android
244
+ */
245
+ export type AndroidSettingKeys = {
246
+ /** `WebSettings`, then `WebSettingsCompat` */
247
+ settings: {
248
+ /** @since Android API 33 */
249
+ algorithmicDarkeningAllowed?: boolean;
250
+ /** @since Android API 11 */
251
+ allowContentAccess?: boolean;
252
+ /** @since Android API 3 */
253
+ allowFileAccess?: boolean;
254
+ /**
255
+ * @since Android API 16
256
+ * @deprecated since API 30
257
+ */
258
+ allowFileAccessFromFileURLs?: boolean;
259
+ /**
260
+ * @since Android API 16
261
+ * @deprecated since API 30
262
+ */
263
+ allowUniversalAccessFromFileURLs?: boolean;
264
+ /** @since Android API 1 */
265
+ blockNetworkImage?: boolean;
266
+ /** @since Android API 8 */
267
+ blockNetworkLoads?: boolean;
268
+ /** @since Android API 3 */
269
+ builtInZoomControls?: boolean;
270
+ /** @since Android API 1 */
271
+ cacheMode?: number;
272
+ /** @since Android API 1 */
273
+ cursiveFontFamily?: string | null;
274
+ /**
275
+ * @since Android API 5
276
+ * @deprecated since API 35
277
+ */
278
+ databaseEnabled?: boolean;
279
+ /**
280
+ * @since Android API 5
281
+ * @deprecated since API 19
282
+ */
283
+ databasePath?: string | null;
284
+ /** @since Android API 1 */
285
+ defaultFixedFontSize?: number;
286
+ /** @since Android API 1 */
287
+ defaultFontSize?: number;
288
+ /** @since Android API 1 */
289
+ defaultTextEncodingName?: string | null;
290
+ /** @since Android API 24 */
291
+ disabledActionModeMenuItems?: number;
292
+ /** @since Android API 11 */
293
+ displayZoomControls?: boolean;
294
+ /** @since Android API 7 */
295
+ domStorageEnabled?: boolean;
296
+ /**
297
+ * @since Android API 11
298
+ * @deprecated since API 17
299
+ */
300
+ enableSmoothTransition?: boolean;
301
+ /** @since Android API 1 */
302
+ fantasyFontFamily?: string | null;
303
+ /** @since Android API 1 */
304
+ fixedFontFamily?: string | null;
305
+ /**
306
+ * @since Android API 29
307
+ * @deprecated since API 33
308
+ */
309
+ forceDark?: number;
310
+ /**
311
+ * @since Android API 5
312
+ * @deprecated since API 24
313
+ */
314
+ geolocationDatabasePath?: string | null;
315
+ /** @since Android API 5 */
316
+ geolocationEnabled?: boolean;
317
+ /** @since Android API 1 */
318
+ javaScriptCanOpenWindowsAutomatically?: boolean;
319
+ /** @since Android API 1 */
320
+ javaScriptEnabled?: boolean;
321
+ /**
322
+ * @since Android API 1
323
+ * @deprecated since API 18
324
+ */
325
+ lightTouchEnabled?: boolean;
326
+ /** @since Android API 7 */
327
+ loadWithOverviewMode?: boolean;
328
+ /** @since Android API 1 */
329
+ loadsImagesAutomatically?: boolean;
330
+ /** @since Android API 17 */
331
+ mediaPlaybackRequiresUserGesture?: boolean;
332
+ /** @since Android API 1 */
333
+ minimumFontSize?: number;
334
+ /** @since Android API 1 */
335
+ minimumLogicalFontSize?: number;
336
+ /** @since Android API 21 */
337
+ mixedContentMode?: number;
338
+ /** @since Android API 1 */
339
+ needInitialFocus?: boolean;
340
+ /** @since Android API 23 */
341
+ offscreenPreRaster?: boolean;
342
+ /** @since Android API 26 */
343
+ safeBrowsingEnabled?: boolean;
344
+ /** @since Android API 1 */
345
+ sansSerifFontFamily?: string | null;
346
+ /**
347
+ * @since Android API 1
348
+ * @deprecated since API 26
349
+ */
350
+ saveFormData?: boolean;
351
+ /**
352
+ * @since Android API 1
353
+ * @deprecated since API 18
354
+ */
355
+ savePassword?: boolean;
356
+ /** @since Android API 1 */
357
+ serifFontFamily?: string | null;
358
+ /** @since Android API 1 */
359
+ standardFontFamily?: string | null;
360
+ /** @since Android API 1 */
361
+ supportMultipleWindows?: boolean;
362
+ /** @since Android API 1 */
363
+ supportZoom?: boolean;
364
+ /** @since Android API 14 */
365
+ textZoom?: number;
366
+ /** @since Android API 1 */
367
+ useWideViewPort?: boolean;
368
+ /** @since Android API 3 */
369
+ userAgentString?: string | null;
370
+ /** `WebSettingsCompat`, WebView feature `ATTRIBUTION_REGISTRATION_BEHAVIOR` */
371
+ attributionRegistrationBehavior?: number;
372
+ /** `WebSettingsCompat`, WebView feature `BACK_FORWARD_CACHE` */
373
+ backForwardCacheEnabled?: boolean;
374
+ /** `WebSettingsCompat`, WebView feature `COOKIE_INTERCEPT` */
375
+ cookiesIncludedInShouldInterceptRequest?: boolean;
376
+ /** `WebSettingsCompat`, WebView feature `DOWNLOAD_FAVICONS_ENABLED` */
377
+ downloadFaviconsEnabled?: boolean;
378
+ /** `WebSettingsCompat`, WebView feature `ENTERPRISE_AUTHENTICATION_APP_LINK_POLICY` */
379
+ enterpriseAuthenticationAppLinkPolicyEnabled?: boolean;
380
+ /**
381
+ * `WebSettingsCompat`, WebView feature `FORCE_DARK_STRATEGY`
382
+ * @deprecated in androidx.webkit
383
+ */
384
+ forceDarkStrategy?: number;
385
+ /** `WebSettingsCompat`, WebView feature `PAYMENT_REQUEST` */
386
+ hasEnrolledInstrumentEnabled?: boolean;
387
+ /** `WebSettingsCompat`, WebView feature `HYPERLINK_CONTEXT_MENU_ITEMS` */
388
+ hyperlinkContextMenuItems?: number;
389
+ /** `WebSettingsCompat`, WebView feature `PAYMENT_REQUEST` */
390
+ paymentRequestEnabled?: boolean;
391
+ /** `WebSettingsCompat`, WebView feature `SPECULATIVE_LOADING` */
392
+ speculativeLoadingStatus?: number;
393
+ /** `WebSettingsCompat`, WebView feature `WEB_AUTHENTICATION` */
394
+ webAuthenticationSupport?: number;
395
+ };
396
+ /** `WebView`, then `WebViewCompat`, then `CookieManager`, then `View`'s scroll setters */
397
+ webView: {
398
+ /** @since Android API 28 */
399
+ dataDirectorySuffix?: string | null;
400
+ /**
401
+ * @since Android API 1
402
+ * @deprecated since API 23
403
+ */
404
+ horizontalScrollbarOverlay?: boolean;
405
+ /** @since Android API 1 */
406
+ initialScale?: number;
407
+ /**
408
+ * @since Android API 1
409
+ * @deprecated since API 17
410
+ */
411
+ mapTrackballToArrowKeys?: boolean;
412
+ /** @since Android API 3 */
413
+ networkAvailable?: boolean;
414
+ /**
415
+ * @since Android API 1
416
+ * @deprecated since API 23
417
+ */
418
+ verticalScrollbarOverlay?: boolean;
419
+ /** `WebViewCompat`, WebView feature `MUTE_AUDIO` */
420
+ audioMuted?: boolean;
421
+ /** `WebViewCompat`, WebView feature `MULTI_PROFILE` */
422
+ profile?: string | null;
423
+ /**
424
+ * `CookieManager`
425
+ * @since Android API 21
426
+ */
427
+ acceptThirdPartyCookies?: boolean;
428
+ /**
429
+ * `View`
430
+ * @since Android API 1
431
+ */
432
+ horizontalScrollBarEnabled?: boolean;
433
+ /**
434
+ * `View`
435
+ * @since Android API 21
436
+ */
437
+ nestedScrollingEnabled?: boolean;
438
+ /**
439
+ * `View`
440
+ * @since Android API 9
441
+ */
442
+ overScrollMode?: number;
443
+ /**
444
+ * `View`
445
+ * @since Android API 16
446
+ */
447
+ scrollBarDefaultDelayBeforeFade?: number;
448
+ /**
449
+ * `View`
450
+ * @since Android API 16
451
+ */
452
+ scrollBarFadeDuration?: number;
453
+ /**
454
+ * `View`
455
+ * @since Android API 16
456
+ */
457
+ scrollBarSize?: number;
458
+ /**
459
+ * `View`
460
+ * @since Android API 1
461
+ */
462
+ scrollBarStyle?: number;
463
+ /**
464
+ * `View`
465
+ * @since Android API 31
466
+ */
467
+ scrollCaptureHint?: number;
468
+ /**
469
+ * `View`
470
+ * @since Android API 3
471
+ */
472
+ scrollContainer?: boolean;
473
+ /**
474
+ * `View`
475
+ * @since Android API 23
476
+ */
477
+ scrollIndicators?: number;
478
+ /**
479
+ * `View`
480
+ * @since Android API 14
481
+ */
482
+ scrollX?: number;
483
+ /**
484
+ * `View`
485
+ * @since Android API 14
486
+ */
487
+ scrollY?: number;
488
+ /**
489
+ * `View`
490
+ * @since Android API 5
491
+ */
492
+ scrollbarFadingEnabled?: boolean;
493
+ /**
494
+ * `View`
495
+ * @since Android API 1
496
+ */
497
+ verticalScrollBarEnabled?: boolean;
498
+ /**
499
+ * `View`
500
+ * @since Android API 11
501
+ */
502
+ verticalScrollbarPosition?: number;
503
+ };
504
+ };
505
+ /**
506
+ * WebKit's and UIScrollView's enums and option sets by raw value, for the iOS keys that take one:
507
+ * `configuration: { dataDetectorTypes: IOSConstants.DataDetectorTypes.link }`.
508
+ *
509
+ * An option set's `all` is the OR of its listed bits, not `NSUIntegerMax`, which JSON can't carry.
510
+ * `WebsiteDataType` has the data type names the `websiteDataStore` methods take, for `call`; `WebViewDataType` is
511
+ * the option set `webView.fetchDataOfTypes:` takes, and `CookiePolicy` the value
512
+ * `httpCookieStore.setCookiePolicy:completionHandler:` takes.
513
+ * @group Platform settings
514
+ * @ios
515
+ * @namespace
516
+ * @hideGroups
517
+ */
518
+ export declare const IOSConstants: {
519
+ /** @enum */
520
+ readonly IndicatorStyle: {
521
+ readonly default: 0;
522
+ readonly black: 1;
523
+ readonly white: 2;
524
+ };
525
+ /** @enum */
526
+ readonly KeyboardDismissMode: {
527
+ readonly none: 0;
528
+ readonly onDrag: 1;
529
+ readonly interactive: 2;
530
+ readonly onDragWithAccessory: 3;
531
+ readonly interactiveWithAccessory: 4;
532
+ };
533
+ /** @enum */
534
+ readonly ContentInsetAdjustmentBehavior: {
535
+ readonly automatic: 0;
536
+ readonly scrollableAxes: 1;
537
+ readonly never: 2;
538
+ readonly always: 3;
539
+ };
540
+ /** @enum */
541
+ readonly DataDetectorTypes: {
542
+ readonly none: 0;
543
+ readonly phoneNumber: 1;
544
+ readonly link: 2;
545
+ readonly address: 4;
546
+ readonly calendarEvent: 8;
547
+ readonly trackingNumber: 16;
548
+ readonly flightNumber: 32;
549
+ readonly lookupSuggestion: 64;
550
+ readonly all: 127;
551
+ };
552
+ /** @enum */
553
+ readonly CookiePolicy: {
554
+ readonly allow: 0;
555
+ readonly disallow: 1;
556
+ };
557
+ /** @enum */
558
+ readonly InactiveSchedulingPolicy: {
559
+ readonly suspend: 0;
560
+ readonly throttle: 1;
561
+ readonly none: 2;
562
+ };
563
+ /** @enum */
564
+ readonly MediaPlaybackState: {
565
+ readonly none: 0;
566
+ readonly playing: 1;
567
+ readonly paused: 2;
568
+ readonly suspended: 3;
569
+ };
570
+ /** @enum */
571
+ readonly MediaCaptureState: {
572
+ readonly none: 0;
573
+ readonly active: 1;
574
+ readonly muted: 2;
575
+ };
576
+ /** @enum */
577
+ readonly FullscreenState: {
578
+ readonly notInFullscreen: 0;
579
+ readonly enteringFullscreen: 1;
580
+ readonly inFullscreen: 2;
581
+ readonly exitingFullscreen: 3;
582
+ };
583
+ /** @enum */
584
+ readonly WebViewDataType: {
585
+ readonly sessionStorage: 1;
586
+ };
587
+ /** @enum */
588
+ readonly SelectionGranularity: {
589
+ readonly dynamic: 0;
590
+ readonly character: 1;
591
+ };
592
+ /** @enum */
593
+ readonly AudiovisualMediaTypes: {
594
+ readonly none: 0;
595
+ readonly audio: 1;
596
+ readonly video: 2;
597
+ readonly all: 3;
598
+ };
599
+ /** @enum */
600
+ readonly ContentMode: {
601
+ readonly recommended: 0;
602
+ readonly mobile: 1;
603
+ readonly desktop: 2;
604
+ };
605
+ /** @enum */
606
+ readonly WebpagePreferencesUpgradeToHTTPSPolicy: {
607
+ readonly keepAsRequested: 0;
608
+ readonly automaticFallbackToHTTP: 1;
609
+ readonly userMediatedFallbackToHTTP: 2;
610
+ readonly errorOnFailure: 3;
611
+ };
612
+ /** @enum */
613
+ readonly SecurityRestrictionMode: {
614
+ readonly none: 0;
615
+ readonly maximizeCompatibility: 1;
616
+ readonly lockdown: 2;
617
+ };
618
+ /** @enum */
619
+ readonly WebsiteDataType: {
620
+ readonly fetchCache: "WKWebsiteDataTypeFetchCache";
621
+ readonly diskCache: "WKWebsiteDataTypeDiskCache";
622
+ readonly memoryCache: "WKWebsiteDataTypeMemoryCache";
623
+ readonly cookies: "WKWebsiteDataTypeCookies";
624
+ readonly sessionStorage: "WKWebsiteDataTypeSessionStorage";
625
+ readonly localStorage: "WKWebsiteDataTypeLocalStorage";
626
+ readonly webSQLDatabases: "WKWebsiteDataTypeWebSQLDatabases";
627
+ readonly indexedDBDatabases: "WKWebsiteDataTypeIndexedDBDatabases";
628
+ readonly serviceWorkerRegistrations: "WKWebsiteDataTypeServiceWorkerRegistrations";
629
+ readonly fileSystem: "WKWebsiteDataTypeFileSystem";
630
+ readonly searchFieldRecentSearches: "WKWebsiteDataTypeSearchFieldRecentSearches";
631
+ readonly mediaKeys: "WKWebsiteDataTypeMediaKeys";
632
+ readonly hashSalt: "WKWebsiteDataTypeHashSalt";
633
+ readonly screenTime: "WKWebsiteDataTypeScreenTime";
634
+ };
635
+ };
636
+ /**
637
+ * The `WebSettings`, `WebView`, `WebSettingsCompat` and `WebViewCompat` constants:
638
+ * `settings: { cacheMode: AndroidConstants.WebSettings.LOAD_NO_CACHE }`.
639
+ * @group Platform settings
640
+ * @android
641
+ * @namespace
642
+ * @hideGroups
643
+ */
644
+ export declare const AndroidConstants: {
645
+ /** @enum */
646
+ readonly WebSettings: {
647
+ readonly FORCE_DARK_AUTO: 1;
648
+ readonly FORCE_DARK_OFF: 0;
649
+ readonly FORCE_DARK_ON: 2;
650
+ readonly LOAD_CACHE_ELSE_NETWORK: 1;
651
+ readonly LOAD_CACHE_ONLY: 3;
652
+ readonly LOAD_DEFAULT: -1;
653
+ readonly LOAD_NORMAL: 0;
654
+ readonly LOAD_NO_CACHE: 2;
655
+ readonly MENU_ITEM_NONE: 0;
656
+ readonly MENU_ITEM_PROCESS_TEXT: 4;
657
+ readonly MENU_ITEM_SHARE: 1;
658
+ readonly MENU_ITEM_WEB_SEARCH: 2;
659
+ readonly MIXED_CONTENT_ALWAYS_ALLOW: 0;
660
+ readonly MIXED_CONTENT_COMPATIBILITY_MODE: 2;
661
+ readonly MIXED_CONTENT_NEVER_ALLOW: 1;
662
+ };
663
+ /** @enum */
664
+ readonly WebView: {
665
+ readonly RENDERER_PRIORITY_BOUND: 1;
666
+ readonly RENDERER_PRIORITY_IMPORTANT: 2;
667
+ readonly RENDERER_PRIORITY_WAIVED: 0;
668
+ readonly SCHEME_GEO: "geo:0,0?q=";
669
+ readonly SCHEME_MAILTO: "mailto:";
670
+ readonly SCHEME_TEL: "tel:";
671
+ };
672
+ /** @enum */
673
+ readonly WebSettingsCompat: {
674
+ readonly ATTRIBUTION_BEHAVIOR_APP_SOURCE_AND_APP_TRIGGER: 3;
675
+ readonly ATTRIBUTION_BEHAVIOR_APP_SOURCE_AND_WEB_TRIGGER: 1;
676
+ readonly ATTRIBUTION_BEHAVIOR_DISABLED: 0;
677
+ readonly ATTRIBUTION_BEHAVIOR_WEB_SOURCE_AND_WEB_TRIGGER: 2;
678
+ /** @deprecated */
679
+ readonly DARK_STRATEGY_PREFER_WEB_THEME_OVER_USER_AGENT_DARKENING: 2;
680
+ /** @deprecated */
681
+ readonly DARK_STRATEGY_USER_AGENT_DARKENING_ONLY: 0;
682
+ /** @deprecated */
683
+ readonly DARK_STRATEGY_WEB_THEME_DARKENING_ONLY: 1;
684
+ /** @deprecated */
685
+ readonly FORCE_DARK_AUTO: 1;
686
+ /** @deprecated */
687
+ readonly FORCE_DARK_OFF: 0;
688
+ /** @deprecated */
689
+ readonly FORCE_DARK_ON: 2;
690
+ readonly SPECULATIVE_LOADING_DISABLED: 0;
691
+ readonly SPECULATIVE_LOADING_PRERENDER_ENABLED: 1;
692
+ readonly WEB_AUTHENTICATION_SUPPORT_FOR_APP: 1;
693
+ readonly WEB_AUTHENTICATION_SUPPORT_FOR_BROWSER: 2;
694
+ readonly WEB_AUTHENTICATION_SUPPORT_NONE: 0;
695
+ };
696
+ /** @enum */
697
+ readonly WebViewCompat: {
698
+ readonly INJECTION_EVENT_DOCUMENT_END: 1;
699
+ readonly INJECTION_EVENT_DOCUMENT_START: 0;
700
+ };
701
+ };
702
+ //# sourceMappingURL=platform.generated.d.ts.map