baseline plugin system (Non-functional)
This commit is contained in:
parent
312a5a7b70
commit
576f44fa86
3 changed files with 79 additions and 0 deletions
33
src/main/plugins/examplePlugin.ts
Normal file
33
src/main/plugins/examplePlugin.ts
Normal file
|
@ -0,0 +1,33 @@
|
|||
export default class ExamplePlugin {
|
||||
|
||||
public name: string = 'examplePlugin';
|
||||
public description: string = 'Example plugin';
|
||||
public version: string = '1.0.0';
|
||||
public author: string = 'Example author';
|
||||
|
||||
constructor() {
|
||||
this.name = 'coolPlugin';
|
||||
this.description = 'A pretty cool plugin';
|
||||
this.version = '1.0.0';
|
||||
this.author = 'Core';
|
||||
}
|
||||
|
||||
onStart(): void {
|
||||
console.log('Example plugin started');
|
||||
}
|
||||
|
||||
onReady(): void {
|
||||
console.log('Example plugin ready');
|
||||
}
|
||||
|
||||
onStop(): void {
|
||||
console.log('Example plugin stopped');
|
||||
}
|
||||
|
||||
OnPlaybackStateChanged(attributes: object): void {
|
||||
}
|
||||
|
||||
OnMediaStateChanged(attributes: object): void {
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue