Notification.setDefaultActionAndTarget

Sets the default action of notification to action. This action is activated when the notification is clicked on. It must be an application-wide action (start with "app.").

If target is non-null, action will be activated with target as its parameter. If target is floating, it will be consumed.

When no default action is set, the application that the notification was sent on is activated.

class Notification
void
setDefaultActionAndTarget

Parameters

action string

an action name

target glib.variant.VariantG

a #GVariant to use as action's parameter, or null