Skip to content

Commit

Permalink
Merge pull request #17 from purejava/libappindicator
Browse files Browse the repository at this point in the history
Change TrayMenuController
  • Loading branch information
infeo authored Apr 26, 2023
2 parents 4ec1101 + 17fbf49 commit 90ad49c
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import org.cryptomator.integrations.common.IntegrationsLoader;
import org.jetbrains.annotations.ApiStatus;

import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.util.List;
import java.util.Optional;

Expand All @@ -23,20 +22,20 @@ static Optional<TrayMenuController> get() {
/**
* Displays an icon on the system tray.
*
* @param imageData What image to show
* @param imageUri What image to show
* @param defaultAction Action to perform when interacting with the icon directly instead of its menu
* @param tooltip Text shown when hovering
* @throws TrayMenuException thrown when adding the tray icon failed
*/
void showTrayIcon(byte[] imageData, Runnable defaultAction, String tooltip) throws TrayMenuException;
void showTrayIcon(URI imageUri, Runnable defaultAction, String tooltip) throws TrayMenuException;

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

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

0 comments on commit 90ad49c

Please sign in to comment.