Skip to content

Commit

Permalink
Merge pull request #14 from VsevolodGolovanov/issue_13_add_update_tra…
Browse files Browse the repository at this point in the history
…y_icon

Closes #13

Add method to update tray icon
  • Loading branch information
infeo authored Dec 14, 2022
2 parents 1de45ce + c7ecab8 commit 4addcad
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ static Optional<TrayMenuController> get() {
*/
void showTrayIcon(byte[] imageData, Runnable defaultAction, String tooltip) throws TrayMenuException;

/**
* Updates the icon on the system tray.
*
* @param imageData What image to show
* @throws IllegalStateException thrown when called before an icon has been added
*/
void updateTrayIcon(byte[] imageData);

/**
* Show the given options in the tray menu.
* <p>
Expand Down

0 comments on commit 4addcad

Please sign in to comment.