reset
Clears the live updates directory and saved update data. Attempts to cancel any running sync jobs.
Example usage (kotlin):
// Reset all apps
LiveUpdateManager.reset(context)
// Reset but retain downloaded app files
LiveUpdateManager.reset(context, true)
Content copied to clipboard
Example usage (Java):
// Reset all apps
LiveUpdateManager.reset(context);
// Reset but retain downloaded app files
LiveUpdateManager.reset(context, true);
Content copied to clipboard
Parameters
context
an Android Context used to reset
retain Cache
retain downloaded app files and live update cache (false by default)