downloadApp

suspend fun downloadApp(downloadUrl: String, onProgress: (percentage: Double, <Error class: unknown class>?) -> Unit): Boolean

Downloads an application file from the provided URL and tracks the download progress.

Return

A Boolean indicating whether the download was successful. Returns true if the download completes successfully, otherwise false.

Parameters

downloadUrl

The URL from which the application will be downloaded.

onProgress

A callback function reporting download progress percentage and the downloaded file (if available). The percentage is a Double ranging from 0.0 to 100.0, or -1.0 in case of errors. The file parameter is the local file being downloaded, or null during download progress updates.