-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow playing default notification sound
- Loading branch information
Showing
4 changed files
with
55 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
use mac_notification_sys::*; | ||
|
||
fn main() { | ||
|
||
Notification::default() | ||
.title("🔔") | ||
.message("Ping") | ||
.sound("Ping") | ||
.send() | ||
.unwrap(); | ||
|
||
Notification::default() | ||
.title("🐟") | ||
.message("Submarine") | ||
.sound("Submarine") | ||
.send() | ||
.unwrap(); | ||
|
||
Notification::default() | ||
.title("🥱") | ||
.message("Default") | ||
.sound(Sound::Default) | ||
.send() | ||
.unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters