xsnotifier
v0.5.3
Published
Send notifications to XSOverlay with javascript/typescript
Downloads
1
Readme
XSNotifier
Shows notifications for XSOverlay
const n = require('../'); // Import the library
let notifier = new n.XSNotifier(); // Initilize the notifier
notifier.SendNotification(new n.XSNotification({ // Create a new notification and send it
Title: 'test',
Content: 'notification test',
SourceApp: 'my app'
})).then(() => {
console.log('Sent')
notifier.Close(); // Make sure to close the connection when you are done with it, if you need to send more than one notification you can leave it open.
}).catch(e =>
console.error(e));
Notification Parameters
{
UseBase64Icon: boolean;
Height: number;
Opacity: number;
Timeout: number;
Volume: number;
Index: number;
AudioPath: string;
Content: string;
Icon: string;
SourceApp: string;
Title: string;
MessageType: XSMessageType;
}
More information here