Skip to content

Commit 07ecfa1

Browse files
committed
Update merged docs via GitHub Action
1 parent f93d132 commit 07ecfa1

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10743,6 +10743,41 @@ The WebView Widget enables seamless integration of web content within native app
1074310743
#note that if you explicitly specify `allowedLaunchSchemes` you must specify the defaults as well if you want them to be allowed otherwise they will be overwritten
1074410744
```
1074510745
```yaml
10746+
- WebView:
10747+
id: testWebView
10748+
url: https://10.0.2.2:5501/test_webview_channels.html
10749+
styles:
10750+
height: 300
10751+
javascriptChannels:
10752+
- name: AppBridge
10753+
onMessageReceived:
10754+
executeCode:
10755+
body: |
10756+
console.log("Received from AppBridge: " + event.data.message);
10757+
myMessage.text = event.data.message;
10758+
10759+
- name: PaymentChannel
10760+
onMessageReceived:
10761+
executeCode:
10762+
body: |
10763+
console.log("Received from PaymentChannel: " + event.data.message);
10764+
var data = JSON.parse(event.data.message);
10765+
if (data.action === "process_payment") {
10766+
paymentStatus.text = 'Processing payment...';
10767+
}
10768+
```
10769+
```html
10770+
<script>
10771+
// Send a simple string
10772+
window.AppBridge.postMessage('Hello from WebView!');
10773+
10774+
// Send structured data as JSON string
10775+
window.PaymentChannel.postMessage(
10776+
JSON.stringify({ action: 'process_payment', amount: 29.99, currency: 'USD' })
10777+
);
10778+
</script>
10779+
```
10780+
```yaml
1074610781
headerOverrideRules:
1074710782
- urlPattern: "api.example.com"
1074810783
matchType: CONTAINS

public/llms-full.txt

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10743,6 +10743,41 @@ The WebView Widget enables seamless integration of web content within native app
1074310743
#note that if you explicitly specify `allowedLaunchSchemes` you must specify the defaults as well if you want them to be allowed otherwise they will be overwritten
1074410744
```
1074510745
```yaml
10746+
- WebView:
10747+
id: testWebView
10748+
url: https://10.0.2.2:5501/test_webview_channels.html
10749+
styles:
10750+
height: 300
10751+
javascriptChannels:
10752+
- name: AppBridge
10753+
onMessageReceived:
10754+
executeCode:
10755+
body: |
10756+
console.log("Received from AppBridge: " + event.data.message);
10757+
myMessage.text = event.data.message;
10758+
10759+
- name: PaymentChannel
10760+
onMessageReceived:
10761+
executeCode:
10762+
body: |
10763+
console.log("Received from PaymentChannel: " + event.data.message);
10764+
var data = JSON.parse(event.data.message);
10765+
if (data.action === "process_payment") {
10766+
paymentStatus.text = 'Processing payment...';
10767+
}
10768+
```
10769+
```html
10770+
<script>
10771+
// Send a simple string
10772+
window.AppBridge.postMessage('Hello from WebView!');
10773+
10774+
// Send structured data as JSON string
10775+
window.PaymentChannel.postMessage(
10776+
JSON.stringify({ action: 'process_payment', amount: 29.99, currency: 'USD' })
10777+
);
10778+
</script>
10779+
```
10780+
```yaml
1074610781
headerOverrideRules:
1074710782
- urlPattern: "api.example.com"
1074810783
matchType: CONTAINS

0 commit comments

Comments
 (0)