withProgressBar

fun withProgressBar(progressBar: ProgressBar)

Function to register ProgressBar to listen to loading source image

Parameters

progressBar

ProgressBar that will be listen when the image is loaded, will be displayed when the image still currently loading and will be hidden when the image already loaded