> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# closePluginView

> 关闭插件界面。

调用该接口会直接关闭当前插件的界面显示。

```ts theme={null}
closePluginView(): Promise<boolean>;
```

**返回**

* `Promise<boolean>`：是否成功关闭

## 示例

```ts wrap theme={null}
import { PluginManager } from 'sn-plugin-lib';

/**
 * 关闭插件界面的示例。
 */
export async function exampleClosePluginView() {
  const ok = await PluginManager.closePluginView();
  return ok;
}
```
