DownloadCallback
The Check Callback interface is used to provide completion behavior when using the asynchronous LiveUpdateManager.downloadUpdate() method.
Methods
onComplete
static
Called when the LiveUpdateManager.downloadUpdate() method has finished.
Usage
- Kotlin
- Java
// Async download call
LiveUpdateManager.downloadUpdate(applicationContext, "appId", "snapshotId", object : DownloadCallback {
override fun onComplete(result: DownloadResponse?) {
// Do something with result
}
})
// Async download call
LiveUpdateManager.downloadUpdate(getContext(), "appId", "snapshotId", downloadResponse -> {
// Do something with response
});
Parameters
Name | Type | Description |
---|---|---|
response | DownloadResponse | Download response model containing result data if successful or error information if failed. |