Skip to content

Commit

Permalink
enhance(docs): Document Windows-specific icon behaviour (#8153)
Browse files Browse the repository at this point in the history
  • Loading branch information
i-c-b committed Nov 6, 2023
1 parent 2c7d683 commit 416370a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/tauri/src/api/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ impl Notification {
}

/// Sets the notification icon.
///
/// ## Platform-specific
///
/// - **Windows**: The app must be installed for this to have any effect.
#[must_use]
pub fn icon(mut self, icon: impl Into<String>) -> Self {
self.icon = Some(icon.into());
Expand Down
9 changes: 8 additions & 1 deletion tooling/api/src/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@ interface Options {
title: string
/** Optional notification body. */
body?: string
/** Optional notification icon. */
/**
* Optional notification icon.
*
* #### Platform-specific
*
* - **Windows**: The app must be installed for this to have any effect.
*
*/
icon?: string
/**
* Optional notification sound.
Expand Down

0 comments on commit 416370a

Please sign in to comment.