Skip to main content
This API closes the currently shown plugin UI.
closePluginView(): Promise<boolean>;
Returns
  • Promise<boolean>: whether the UI was closed successfully

Example

import { PluginManager } from 'sn-plugin-lib';

/**
 * Example: close the plugin UI.
 */
export async function exampleClosePluginView() {
 const ok = await PluginManager.closePluginView();
 return ok;
}