Drive.connectStopButton

gulong connectStopButton(T)(T callback, Flag!"After" after = No.After)

Connect to StopButton signal.

Emitted when the physical stop button (if any) of a drive has been pressed.

Parameters

callbacksignal callback delegate or function to connect void callback(gio.drive.Drive drive) drive the instance the signal is connected to (optional)
afterYes.After to execute callback after default handler, No.After to execute before (default)

Returns

Signal ID