presentDuring

suspend fun <T> BaseHUD.presentDuring(animated: Boolean = true, block: suspend BaseHUD.() -> T): T

Presents and keep presenting the indicator during block execution, hides view after block finished.

Parameters

animated

Pass true to animate the transition

block

The block to execute with hud visible