SetMeshLogSettingsUseCase

open class SetMeshLogSettingsUseCase(meshLogRepository: MeshLogRepository, meshLogPrefs: MeshLogPrefs, applicationScope: ApplicationCoroutineScope)(source)

Use case for managing mesh log settings.

The deletes a settings change triggers run on applicationScope, not the caller's scope: a retention prune deletes in batches and stops at cancellation, so closing the screen that asked for it must not cut the pass short.

Constructors

Link copied to clipboard
constructor(meshLogRepository: MeshLogRepository, meshLogPrefs: MeshLogPrefs, applicationScope: ApplicationCoroutineScope)

Functions

Link copied to clipboard

Enables or disables mesh logging, clearing or pruning the stored logs in the background.

Link copied to clipboard

Sets the retention period for mesh logs and prunes to it in the background.