Retrieves information about the custom icon the application previously set in the system tray via setTrayIcon()
.
Example
var application = fin.desktop.Application.getCurrent();
application.getTrayIconInfo(function(trayInfo) {
console.log("Top left corner of tray icon rect: (" + trayInfo.x + "," + trayInfo.y + ")");
});
Tray info
This response has the following shape:
{
x: 0, //copy of bounds.x
y: 0, //copy of bounds.y
bounds: {
x: 0, //coordinate of left edge of tray icon in virtual screen pixels
y: 0, //coordinate of top edge of tray icon virtual screen pixels
width: 0, //horizontal dimension of tray icon in virtual screen pixels
height: 0 //vertical dimension of tray icon in virtual screen pixels
},
monitorInfo: {}, //Please see fin.desktop.System.getMonitorInfo for more information
}