English
setWebViewTitle
About 108 wordsLess than 1 minute
2025-12-16
Adapter for setting the WebView title
Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| opts | Object | Yes | Configuration options object |
| opts.title | String | Yes | Title text to set |
Return Value
No return value. It directly calls the native interface of the third-party app to set the title.
Usage Example
setWebViewTitle(opts) {
// Set WebView title
window.xx.setWebViewTitle(opts.title || 'Fixed Title xx');
}The third-party app provides a native interface for setting the WebView title, which can dynamically modify the title of the current page.
Attention
- The title takes effect immediately after being set
- If
opts.titleis empty, the default title will be used
