reset

fun reset(context: Context, retainCache: Boolean = false)

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)

Example usage (Java):

// Reset all apps
LiveUpdateManager.reset(context);

// Reset but retain downloaded app files
LiveUpdateManager.reset(context, true);

Parameters

context

an Android Context used to reset

retainCache

retain downloaded app files and live update cache (false by default)