Application.connectCommandLine

Connect to CommandLine signal.

The ::command-line signal is emitted on the primary instance when a commandline is not handled locally. See gio.application.Application.run and the #GApplicationCommandLine documentation for more information.

class Application
ulong
connectCommandLine
(
T
)
(,
Flag!"After" after = No.After
)
if (
isCallable!T &&
is(ReturnType!T == int)
&&
(
Parameters!T.length < 1 ||
(
ParameterStorageClassTuple!T[0] == ParameterStorageClass.none &&
)
)
&&
(
Parameters!T.length < 2 ||
(
ParameterStorageClassTuple!T[1] == ParameterStorageClass.none &&
is(Parameters!T[1] : gio.application.Application)
)
)
&&
Parameters!T.length < 3
)

Parameters

callback T

signal callback delegate or function to connect

int callback(gio.application_command_line.ApplicationCommandLine commandLine, gio.application.Application application)

commandLine a #GApplicationCommandLine representing the passed commandline (optional)

application the instance the signal is connected to (optional)

Returns An integer that is set as the exit status for the calling process. See gio.application_command_line.ApplicationCommandLine.setExitStatus.

after Flag!"After"

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

Return Value

Type: ulong

Signal ID