| 1 |
## API Report File for "@lumino/application" |
| 2 |
|
| 3 |
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
| 4 |
|
| 5 |
```ts |
| 6 |
|
| 7 |
import { CommandRegistry } from '@lumino/commands'; |
| 8 |
import { ContextMenu } from '@lumino/widgets'; |
| 9 |
import { IPlugin } from '@lumino/coreutils'; |
| 10 |
import { Menu } from '@lumino/widgets'; |
| 11 |
import { PluginRegistry } from '@lumino/coreutils'; |
| 12 |
import { Token } from '@lumino/coreutils'; |
| 13 |
import { Widget } from '@lumino/widgets'; |
| 14 |
|
| 15 |
// @public |
| 16 |
export class Application<T extends Widget = Widget> { |
| 17 |
constructor(options: Application.IOptions<T>); |
| 18 |
activateDeferredPlugins(): Promise<void>; |
| 19 |
activatePlugin(id: string): Promise<void>; |
| 20 |
protected addEventListeners(): void; |
| 21 |
protected attachShell(id: string): void; |
| 22 |
readonly commands: CommandRegistry; |
| 23 |
readonly contextMenu: ContextMenu; |
| 24 |
deactivatePlugin(id: string): Promise<string[]>; |
| 25 |
get deferredPlugins(): string[]; |
| 26 |
deregisterPlugin(id: string, force?: boolean): void; |
| 27 |
protected evtContextMenu(event: PointerEvent): void; |
| 28 |
protected evtKeydown(event: KeyboardEvent): void; |
| 29 |
protected evtKeyup(event: KeyboardEvent): void; |
| 30 |
protected evtResize(event: Event): void; |
| 31 |
getPluginDescription(id: string): string; |
| 32 |
handleEvent(event: Event): void; |
| 33 |
hasPlugin(id: string): boolean; |
| 34 |
isPluginActivated(id: string): boolean; |
| 35 |
listPlugins(): string[]; |
| 36 |
protected pluginRegistry: PluginRegistry; |
| 37 |
registerPlugin(plugin: IPlugin<this, any>): void; |
| 38 |
registerPlugins(plugins: IPlugin<this, any>[]): void; |
| 39 |
resolveOptionalService<U>(token: Token<U>): Promise<U | null>; |
| 40 |
resolveRequiredService<U>(token: Token<U>): Promise<U>; |
| 41 |
readonly shell: T; |
| 42 |
start(options?: Application.IStartOptions): Promise<void>; |
| 43 |
get started(): Promise<void>; |
| 44 |
} |
| 45 |
|
| 46 |
// @public |
| 47 |
export namespace Application { |
| 48 |
export interface IOptions<T extends Widget> extends PluginRegistry.IOptions { |
| 49 |
contextMenuRenderer?: Menu.IRenderer; |
| 50 |
pluginRegistry?: PluginRegistry; |
| 51 |
shell: T; |
| 52 |
} |
| 53 |
export interface IStartOptions { |
| 54 |
bubblingKeydown?: boolean; |
| 55 |
hostID?: string; |
| 56 |
ignorePlugins?: string[]; |
| 57 |
startPlugins?: string[]; |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
export { IPlugin } |
| 62 |
|
| 63 |
``` |