Resource.onTransferProgress event
The onTransferProgress event indicates the progress of a resource-transfer operation.
Resource.onTransferProgress(
numBytesTransferred,
numTotalBytes
)
numBytesTransferred
The number of bytes that have been transferred so far.numTotalBytes
The total number of bytes that will be transferred.
This event does not return a value.
For an example of how to use the onTransferProgress event, see the examples in the topic Asynchronous Functions.
The following code shows the handler-function syntax for the onTransferProgress event.
function HandlerFunction(numBytesTransferred, numTotalBytes)
{
// Code to handle an asynchronous transfer operation.
}
// Set the event handler.
resource.onTransferProgress = HandlerFunction;
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |