1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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, Toast};

fn main() {
    Toast::new(Toast::POWERSHELL_APP_ID)
        .title("Look at this flip!")
        .text1("(╯°□°)╯︵ ┻━┻")
        .sound("Alarm5".try_into().ok())
        .duration(Duration::Short)
        .show()
        .expect("unable to send notification");
}