Download.connectReceivedData
gulong connectReceivedData(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] == ulong)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : webkit.download.Download)))
&& Parameters!T.length < 3)Connect to ReceivedData signal.
This signal is emitted after response is received, every time new data has been written to the destination. It's useful to know the progress of the download operation.
Parameters
callback | signal callback delegate or function to connect void callback(ulong dataLength, webkit.download.Download download) dataLength the length of data received in bytes (optional) download 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