@capgo/inappbrowser 7.22.1 → 7.22.4
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.
- package/README.md +13 -13
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/InAppBrowserPlugin.java +769 -954
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/Options.java +383 -409
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewCallbacks.java +7 -7
- package/android/src/main/java/ee/forgr/capacitor_inappbrowser/WebViewDialog.java +2565 -3135
- package/dist/docs.json +13 -13
- package/dist/esm/definitions.d.ts +10 -10
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +2 -2
- package/dist/esm/web.js +12 -12
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +12 -12
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +12 -12
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/InAppBrowserPlugin/InAppBrowserPlugin.swift +1 -1
- package/ios/Sources/InAppBrowserPlugin/WKWebViewController.swift +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -353,7 +353,7 @@ Sets the URL of the webview.
|
|
|
353
353
|
### addListener('urlChangeEvent', ...)
|
|
354
354
|
|
|
355
355
|
```typescript
|
|
356
|
-
addListener(eventName:
|
|
356
|
+
addListener(eventName: 'urlChangeEvent', listenerFunc: UrlChangeListener) => Promise<PluginListenerHandle>
|
|
357
357
|
```
|
|
358
358
|
|
|
359
359
|
Listen for url change, only for openWebView
|
|
@@ -373,7 +373,7 @@ Listen for url change, only for openWebView
|
|
|
373
373
|
### addListener('buttonNearDoneClick', ...)
|
|
374
374
|
|
|
375
375
|
```typescript
|
|
376
|
-
addListener(eventName:
|
|
376
|
+
addListener(eventName: 'buttonNearDoneClick', listenerFunc: ButtonNearListener) => Promise<PluginListenerHandle>
|
|
377
377
|
```
|
|
378
378
|
|
|
379
379
|
| Param | Type |
|
|
@@ -389,7 +389,7 @@ addListener(eventName: "buttonNearDoneClick", listenerFunc: ButtonNearListener)
|
|
|
389
389
|
### addListener('closeEvent', ...)
|
|
390
390
|
|
|
391
391
|
```typescript
|
|
392
|
-
addListener(eventName:
|
|
392
|
+
addListener(eventName: 'closeEvent', listenerFunc: UrlChangeListener) => Promise<PluginListenerHandle>
|
|
393
393
|
```
|
|
394
394
|
|
|
395
395
|
Listen for close click only for openWebView
|
|
@@ -409,7 +409,7 @@ Listen for close click only for openWebView
|
|
|
409
409
|
### addListener('confirmBtnClicked', ...)
|
|
410
410
|
|
|
411
411
|
```typescript
|
|
412
|
-
addListener(eventName:
|
|
412
|
+
addListener(eventName: 'confirmBtnClicked', listenerFunc: ConfirmBtnListener) => Promise<PluginListenerHandle>
|
|
413
413
|
```
|
|
414
414
|
|
|
415
415
|
Will be triggered when user clicks on confirm button when disclaimer is required,
|
|
@@ -430,7 +430,7 @@ works with openWebView shareDisclaimer and closeModal
|
|
|
430
430
|
### addListener('messageFromWebview', ...)
|
|
431
431
|
|
|
432
432
|
```typescript
|
|
433
|
-
addListener(eventName:
|
|
433
|
+
addListener(eventName: 'messageFromWebview', listenerFunc: (event: { detail: Record<string, any>; }) => void) => Promise<PluginListenerHandle>
|
|
434
434
|
```
|
|
435
435
|
|
|
436
436
|
Will be triggered when event is sent from webview(inappbrowser), to send an event to the main app use window.mobileApp.postMessage({ "detail": { "message": "myMessage" } })
|
|
@@ -452,7 +452,7 @@ This method is inject at runtime in the webview
|
|
|
452
452
|
### addListener('browserPageLoaded', ...)
|
|
453
453
|
|
|
454
454
|
```typescript
|
|
455
|
-
addListener(eventName:
|
|
455
|
+
addListener(eventName: 'browserPageLoaded', listenerFunc: () => void) => Promise<PluginListenerHandle>
|
|
456
456
|
```
|
|
457
457
|
|
|
458
458
|
Will be triggered when page is loaded
|
|
@@ -470,7 +470,7 @@ Will be triggered when page is loaded
|
|
|
470
470
|
### addListener('pageLoadError', ...)
|
|
471
471
|
|
|
472
472
|
```typescript
|
|
473
|
-
addListener(eventName:
|
|
473
|
+
addListener(eventName: 'pageLoadError', listenerFunc: () => void) => Promise<PluginListenerHandle>
|
|
474
474
|
```
|
|
475
475
|
|
|
476
476
|
Will be triggered when page load error
|
|
@@ -703,18 +703,18 @@ Construct a type with a set of properties K of type T
|
|
|
703
703
|
|
|
704
704
|
| Members | Value | Description | Since |
|
|
705
705
|
| ---------------- | ------------------------- | ---------------------------------------------------------------- | ----- |
|
|
706
|
-
| **`ACTIVITY`** | <code>
|
|
707
|
-
| **`COMPACT`** | <code>
|
|
708
|
-
| **`NAVIGATION`** | <code>
|
|
709
|
-
| **`BLANK`** | <code>
|
|
706
|
+
| **`ACTIVITY`** | <code>'activity'</code> | Shows a simple toolbar with just a close button and share button | 0.1.0 |
|
|
707
|
+
| **`COMPACT`** | <code>'compact'</code> | Shows a simple toolbar with just a close button | 7.6.8 |
|
|
708
|
+
| **`NAVIGATION`** | <code>'navigation'</code> | Shows a full navigation toolbar with back/forward buttons | 0.1.0 |
|
|
709
|
+
| **`BLANK`** | <code>'blank'</code> | Shows no toolbar | 0.1.0 |
|
|
710
710
|
|
|
711
711
|
|
|
712
712
|
#### BackgroundColor
|
|
713
713
|
|
|
714
714
|
| Members | Value |
|
|
715
715
|
| ----------- | -------------------- |
|
|
716
|
-
| **`WHITE`** | <code>
|
|
717
|
-
| **`BLACK`** | <code>
|
|
716
|
+
| **`WHITE`** | <code>'white'</code> |
|
|
717
|
+
| **`BLACK`** | <code>'black'</code> |
|
|
718
718
|
|
|
719
719
|
</docgen-api>
|
|
720
720
|
|