extract Update
Deprecated
No longer supported
Replace with
sync
Content copied to clipboard
Synchronous function to extract a downloaded zipped app.
Example usage (kotlin):
val checkScope = CoroutineScope(Dispatchers.IO)
checkScope.launch {
val response = LiveUpdateManager.extractUpdate("appId", zipFile)
println(response?.path)
}
Content copied to clipboard
Example usage (Java):
Executor executor = Executors.newSingleThreadExecutor();
executor.execute(() -> {
File extractedFile = LiveUpdateManager.extractUpdate(getContext(), zipFile);
});
Content copied to clipboard
Return
a file directory where the app was unzipped
Parameters
app Id
the ID of the registered app
zip File
the zipped app download to extract
Deprecated
No longer supported
Replace with
sync
Content copied to clipboard
Asynchronous function to extract a downloaded zipped app.
Example usage (kotlin):
LiveUpdateManager.extractUpdate("appId", zipFile, object : ExtractCallback {
override fun onComplete(result: File?) {
println(response?.path)
}
})
Content copied to clipboard
Example usage (Java):
LiveUpdateManager.extractUpdate(getContext(), zipFile, extractedFile -> {
// Do something with file
});
Content copied to clipboard
Parameters
app Id
the ID of the registered app
zip File
the zipped app download to extract
callback
an ExtractCallback to handle the response from the extract request