MWebviewPlugin.close()
PluginMWebviewPlugincloseLess 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/Events | Android | IOS | Desktop |
---|---|---|---|
close | ✅ | ✅ | ✅ |
Powered by Waline v2.15.7