Tutorial: notification.getCurrent

notification.getCurrent

Gets an instance of the current notification. For use within a notification window to close the window or send a message back to its parent application.

Example

// If inside of a notification:
var notification = fin.desktop.Notification.getCurrent();

notification.close();