set_default_action_and_target


Description:

public void set_default_action_and_target (string action, string? target_format, ...)

Sets the default action of this to action.

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

If target_format is given, it is used to collect remaining positional parameters into a Variant instance, similar to Variant. action will be activated with that Variant as its parameter.

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

Parameters:

this

a Notification

action

an action name

target_format

a Variant format string, or null

...

positional parameters, as determined by target_format