DataClearingPlugin

Plugin interface for contributing data cleanup logic.

Any module can implement this interface to participate in data clearing. The orchestrator calls all registered plugins whenever data needs to be removed. Each plugin inspects the types set to decide what action to take.

Implement this interface and annotate with @ContributesMultibinding(AppScope::class) to register a plugin.

Functions

Link copied to clipboard
abstract suspend fun onClearData(types: Set<ClearableData>)

Called when data should be cleared. Inspect types to decide what to do.