Application.connectNameLost

gulong connectNameLost(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gio.application.Application))) && Parameters!T.length < 2)

Connect to NameLost signal.

The ::name-lost signal is emitted only on the registered primary instance when a new instance has taken over. This can only happen if the application is using the [gio.types.ApplicationFlags.AllowReplacement] flag.

The default handler for this signal calls [gio.application.Application.quit].

Parameters

callbacksignal callback delegate or function to connect bool callback(gio.application.Application application) application the instance the signal is connected to (optional) Returns true if the signal has been handled
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID