AlertDialog.connectResponse

Connect to Response signal.

This signal is emitted when the dialog is closed.

response will be set to the response ID of the button that had been activated.

if the dialog was closed by pressing <kbd>Escape</kbd> or with a system action, response will be set to the value of propertyAlertDialog:close-response.

class AlertDialog
ulong
connectResponse
(
T
)
(
string detail = null
,,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == void)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
is(Parameters!T[0] == string)
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : adw.alert_dialog.AlertDialog)
)
)
&&
Parameters!T.length < 3
)

Parameters

detail string

Signal detail or null (default)

callback T

signal callback delegate or function to connect

void callback(string response, adw.alert_dialog.AlertDialog alertDialog)

response the response ID (optional)

alertDialog the instance the signal is connected to (optional)

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID