FileProgressCallback

typealias FileProgressCallback = (currentNumBytes: Long, totalNumBytes: Long) -> Unit

When doing file operations that may take a while, such as moving a file or copying a file, a progress callback is used to pass how far along that operation is to the application.

  • param currentNumBytes the current number of bytes in the operation.

  • param totalNumBytes the total number of bytes in the operation.