analyze

abstract suspend fun analyze(cleaners: List<Cleaner>, isFullRefresh: Boolean)

Launches a list of cleaners to analyze trash items.

Parameters

cleaners

List of cleaners for analysis

isFullRefresh

True - analysis will be restarted. False - the cache of found non-deleted items will be used

Example:

// Get the launcher through the cleaner manager
val launcher = CleanerManagerFactory.cleanerManager.launcher

// List of cleaners for the launcher
val cleanerList: List<Cleaner>

// Start the analysis process with the following call
launcher.analyze(
cleaners = cleanerList,
isFullRefresh = true
)

Throws

In case the method is used not in the library scope

If the library has the status CleanerManager.isPreparedToWork is false