Native Windows Toast Notifications for Haxe/C++ using WinToastLib.
- Support for Windows 8, 8.1, 10, and 11
- Easy to use API
- Based on the robust WinToastLib
- OpenFL integration
haxelib git traynotifier https://github.com/HyperCodeCrew/TrayNotifier.gitimport traynotifier.Notifier;
class Main {
static function main() {
// Initialize the notification system
Notifier.initialize("YourAppName", "YourAppID");
// Show a toast notification
Notifier.show("YourAppID", "Hello", "World");
}
}import traynotifier.openfl.ToastNotification;
class Main {
static function main() {
// Create a toast notification instance
var toast = new ToastNotification();
// Initialize the notification system
toast.initialize("YourAppName", "YourAppID");
// Show a toast notification
toast.show("Hello", "World");
// You can also listen for events
toast.addEventListener(ToastNotification.NOTIFICATION_SHOWN, function(e) {
trace("Notification shown successfully");
});
toast.addEventListener(ToastNotification.NOTIFICATION_ERROR, function(e) {
trace("Error showing notification: " + e.code);
});
}
}- Clone the repository
- Install dependencies:
haxelib install hxcpp
haxelib install openfl # If you want to use with OpenFL- Build the project:
haxe build.hxmlMIT License - See License file for details.
- WinToastLib by Mohammed Boujemaoui
- Developed by HyperCodeCrew