0.5.3 • Published 1 year ago

xsnotifier v0.5.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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

0.5.3

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.5.0

1 year ago