mirror of
https://github.com/tauri-apps/winrt-notification.git
synced 2026-01-31 00:45:19 +01:00
17 lines
542 B
Rust
17 lines
542 B
Rust
// Copyright 2017-2022 allenbenz <allenbenz@users.noreply.github.com>
|
|
// Copyright 2022-2022 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
use tauri_winrt_notification::{Duration, Sound, Toast};
|
|
|
|
fn main() {
|
|
Toast::new(Toast::POWERSHELL_APP_ID)
|
|
.title("Look at this flip!")
|
|
.text1("(╯°□°)╯︵ ┻━┻")
|
|
.sound(Some(Sound::SMS))
|
|
.duration(Duration::Short)
|
|
.show()
|
|
.expect("unable to send notification");
|
|
}
|