Skip to main content

MWebviewPlugin.close()

BFChainPluginMWebviewPlugincloseLess than 1 minute

Destroy the specified page within the app.

Example

import { mwebviewPlugin } from "@plaoc/plugins";
(() => {
  const { webview_id } = await mwebviewPlugin.open("http://xxx");
  mwebviewPlugin.close(webview_id);
})();

Function signature

close(webview_id: string): Promise<boolean>

Parameters

-string

The webview identifier can be understood as the page ID.

return value

-boolean

Platform compatibility

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