onProgress (event)
Fires periodically during the data transfer.
Syntax
- (void)onProgress:(long long)total :(long long)current :(int*)cancel;
func onProgress(_ total: Int64, _ current: Int64, _ cancel: inout Int32)
Remarks
Use this event to check the progress of an upload or download operation. Total indicates the total number of bytes to be transferred; Current specifies how much data has been transferred so far, and Cancel gives you a chance to cancel the operation.