onProgress

abstract fun onProgress(progress: Int, total: Int)

Will be invoked on the background thread, not in UI thread.

Parameters

progress

from 0 to total by contract

total