2 releases
0.2.1 | May 31, 2024 |
---|---|
0.2.0 | May 30, 2024 |
#142 in Windows APIs
36 downloads per month
49KB
985 lines
winrt-toast-reborn
A mostly usable binding to the Windows ToastNotification
API.
Example
use winrt_toast::{Toast, Text, Header, ToastManager};
use winrt_toast::content::text::TextPlacement;
fn main() {
let manager = ToastManager::new(ToastManager::POWERSHELL_AUM_ID);
let mut toast = Toast::new();
toast
.text1("Title")
.text2(Text::new("Body"))
.text3(
Text::new("Via SMS")
.with_placement(TextPlacement::Attribution)
);
manager.show(&toast).expect("Failed to show toast");
}
To-Do Features
- Button style and tooltips in actions
- Better callbacks
- Sound
- Adaptive contents and data binding
- Groups and subgroups
Dependencies
~130MB
~2M SLoC