VolumeMonitor.connectMountPreUnmount
gulong connectMountPreUnmount(T)(T callback, 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] : gio.mount.Mount)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gio.volume_monitor.VolumeMonitor)))
&& Parameters!T.length < 3)Connect to MountPreUnmount signal.
May be emitted when a mount is about to be removed.
This signal depends on the backend and is only emitted if GIO was used to unmount.
Parameters
callback | signal callback delegate or function to connect void callback(gio.mount.Mount mount, gio.volume_monitor.VolumeMonitor volumeMonitor) mount a #GMount that is being unmounted. (optional) volumeMonitor the instance the signal is connected to (optional) |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID