Skip to main content

MWebviewPlugin.open()

BFChainPluginMWebviewPluginopenLess than 1 minute

Open a new window page within the app.

Example

import { mwebviewPlugin } from "@plaoc/plugins";
mwebviewPlugin.open(`http://xxx`);

Function signature

open(url: string): Promise<WebViewItem>

Parameters

-url

Pass the URL to open.

return value

-WebViewItem

The returned webview_id is the opened page ID, and wid is the window ID.
The page can be closed based on webview_id.

interface WebViewItem {
  webview_id: string;
  wid: string;
}

Platform compatibility

Properties/Methods/EventsAndroidIOSDesktop
open
Comments
  • Latest
  • Oldest
  • Hottest
Powered by Waline v2.15.7