* @zh 检查插件是否已安装 * @en Check if plugin is installed * * @param name - @zh 插件名称 @en Plugin name * @returns @zh 是否已安装 @en Whether installed * * @example * ```typescript * if (Core.isPluginInstalled('my-plugin')) { * console.log('Plugin is installed');
(name: string)
| 631 | * ``` |
| 632 | */ |
| 633 | public static isPluginInstalled(name: string): boolean { |
| 634 | if (!this._instance) { |
| 635 | return false; |
| 636 | } |
| 637 | |
| 638 | return this._instance._pluginManager.isInstalled(name); |
| 639 | } |
| 640 | |
| 641 | /** |
| 642 | * @zh 初始化核心系统 |
no test coverage detected