DebugViewModel

class DebugViewModel(meshLogRepository: MeshLogRepository, nodeRepository: NodeRepository, meshLogPrefs: MeshLogPrefs, alertManager: AlertManager, dispatchers: CoroutineDispatchers) : ViewModel(source)

Constructors

Link copied to clipboard
constructor(meshLogRepository: MeshLogRepository, nodeRepository: NodeRepository, meshLogPrefs: MeshLogPrefs, alertManager: AlertManager, dispatchers: CoroutineDispatchers)

Types

Link copied to clipboard
data class UiMeshLog(val uuid: String, val messageType: String, val formattedReceivedDate: String, val logMessage: String, val decodedPayload: String? = null)

Properties

Link copied to clipboard
val currentMatchIndex: StateFlow<Int>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val filterTexts: StateFlow<List<String>>
Link copied to clipboard
val loggingEnabled: StateFlow<Boolean>
Link copied to clipboard
val meshLog: StateFlow<ImmutableList<DebugViewModel.UiMeshLog>>
Link copied to clipboard
Link copied to clipboard
val retentionDays: StateFlow<Int>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val searchText: StateFlow<String>
Link copied to clipboard
val selectedLogId: StateFlow<String?>

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
fun deleteAllLogs(): Job
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard
suspend fun loadLogsForExport(): ImmutableList<DebugViewModel.UiMeshLog>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard