You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.
We need a powerful, easy plugin system. Below are all the available triggers.
Event
An event is a callback called when something happens. It can have an object in parameter. For example, the onAppLoaded event is called when the app loads for the first time and takes the electron’s app object in the parameter.
onLoad()
onAppLoaded(app: Electron.app)
onAppClose()
onWindowShow(window: Electron.BrowserWindow)
Providers
A provider is a callback called at the startup time, to provide the plugin a specific feature.
For example, the provider provideNotifications is called immediately and gives us a callback used to add a new notification from anywhere.
A hook is a callback called when the desired object load, and can be hooked to be modified by plugins. Hooks takes the object in parameter and returns the modified object.
For example, the hookConfig hook is called when the config loads for the first time and when it changes, and we can change the config passed in parameter and return it back.
We need a powerful, easy plugin system. Below are all the available triggers.
Event
An event is a callback called when something happens. It can have an object in parameter. For example, the
onAppLoaded
event is called when the app loads for the first time and takes the electron’sapp
object in the parameter.onLoad()
onAppLoaded(app: Electron.app)
onAppClose()
onWindowShow(window: Electron.BrowserWindow)
Providers
A provider is a callback called at the startup time, to provide the plugin a specific feature.
For example, the provider
provideNotifications
is called immediately and gives us a callback used to add a new notification from anywhere.provideNotifications(addNotification: Provider<INotification>
Hooks
A hook is a callback called when the desired object load, and can be hooked to be modified by plugins. Hooks takes the object in parameter and returns the modified object.
For example, the
hookConfig
hook is called when the config loads for the first time and when it changes, and we can change the config passed in parameter and return it back.hookWindowOptions(options: Electron.BrowserWindowConstructorOptions) => Electron.BrowserWindowConstructorOptions
hookConfig(config: IConfig) => IConfig
hookTabIcon({ window: IWindow, icon: IconResolverType }) => { window: IWindow, icon: IconResolverType }
PR: #71
The text was updated successfully, but these errors were encountered: