Package-level declarations

Types

Link copied to clipboard
class AndroidLogReader(val fileProviderDescriptor: FileProviderDescriptor) : LogReader

Coordinates AndroidLogReader behavior in the SDAI presentation layer.

Link copied to clipboard
sealed interface LoggerIntent : MviIntent

Defines the LoggerIntent contract for the SDAI presentation layer.

Link copied to clipboard
sealed interface LoggerScreenAction

Defines the LoggerScreenAction contract for the SDAI presentation layer.

Link copied to clipboard
data class LoggerScreenContentState(val loading: Boolean = true, val text: String = "")

Carries LoggerScreenContentState data through the SDAI presentation layer.

Link copied to clipboard
data class LoggerScreenStrings(val title: String = Localization.string("title_debug_logger"), val emptyMessage: String = Localization.string("debug_logger_empty"), val backContentDescription: String = Localization.string("action_back"), val refreshContentDescription: String = Localization.string("action_refresh"), val scrollTopContentDescription: String = Localization.string("action_scroll_to_top"), val scrollBottomContentDescription: String = Localization.string("action_scroll_to_bottom"))

Carries LoggerScreenStrings data through the SDAI presentation layer.

Link copied to clipboard
data class LoggerState(val loading: Boolean = true, val text: String = "") : MviState

Carries LoggerState data through the SDAI presentation layer.

Link copied to clipboard
class LoggerViewModel(val dispatchersProvider: DispatchersProvider, val logReader: LogReader, val router: LoggerRouter, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<LoggerState, LoggerIntent, EmptyEffect>

Coordinates LoggerViewModel behavior in the SDAI presentation layer.

Link copied to clipboard
interface LogReader

Defines the LogReader contract for the SDAI presentation layer.

Link copied to clipboard

Provides the NoOpLogReader singleton used by the SDAI presentation layer.

Functions

Link copied to clipboard
fun LoggerScreen(router: LoggerRouter? = null)

Renders the LoggerScreen UI for the SDAI presentation layer.

Link copied to clipboard
fun LoggerScreenContent(strings: LoggerScreenStrings, state: LoggerScreenContentState, processAction: (LoggerScreenAction) -> Unit, modifier: Modifier = Modifier)

Renders the LoggerScreenContent UI for the SDAI presentation layer.

Link copied to clipboard

Converts SDAI data with toContentState.

Link copied to clipboard

Converts SDAI data with toIntent.