SimpleNotificationAction

class SimpleNotificationAction(name: String, val action: (AnActionEvent, Notification) -> Unit) : NotificationAction(source)

An action that can be run from a notification.

Parameters

name

the name of the action

action

the code to execute when the action is run

Constructors

Link copied to clipboard
constructor(name: String, action: (AnActionEvent, Notification) -> Unit)

Properties

Link copied to clipboard
private val action: (AnActionEvent, Notification) -> Unit

Functions

Link copied to clipboard
open override fun actionPerformed(event: AnActionEvent, notification: Notification)

Runs the action.