Package-level declarations

Types

Link copied to clipboard
class AndroidDebugMenuPlatformActions(val fileProviderDescriptor: FileProviderDescriptor, val backgroundTaskManager: BackgroundTaskManager) : DebugMenuPlatformActions

Coordinates AndroidDebugMenuPlatformActions behavior in the SDAI presentation layer.

Link copied to clipboard
class DebugMenuAccessor(val preferenceManager: PreferenceManager)

Coordinates DebugMenuAccessor behavior in the SDAI presentation layer.

Link copied to clipboard
sealed interface DebugMenuAction

Defines the DebugMenuAction contract for the SDAI presentation layer.

Link copied to clipboard
sealed interface DebugMenuEffect : MviEffect

Defines the DebugMenuEffect contract for the SDAI presentation layer.

Link copied to clipboard
sealed interface DebugMenuIntent : MviIntent

Defines the DebugMenuIntent contract for the SDAI presentation layer.

Link copied to clipboard
sealed interface DebugMenuModal

Defines the DebugMenuModal contract for the SDAI presentation layer.

Link copied to clipboard

Defines the DebugMenuPlatformActions contract for the SDAI presentation layer.

Link copied to clipboard
data class DebugMenuScreenContentState(val localDiffusionAllowCancel: Boolean = false, val localDiffusionSchedulerThread: String = "", val showWorkManagerSection: Boolean = true, val showLocalDiffusionSection: Boolean = true, val showQualityAssuranceSection: Boolean = true)

Carries DebugMenuScreenContentState data through the SDAI presentation layer.

Link copied to clipboard
data class DebugMenuScreenStrings(val title: String, val mainSection: String, val actionLogger: String, val actionLoggerClear: String, val workManagerSection: String, val actionWorkRestartTxt2Img: String, val actionWorkRestartImg2Img: String, val actionWorkCancelAll: String, val localDiffusionSection: String, val actionLocalDiffusionAllowCancel: String, val actionLocalDiffusionScheduler: String, val qualityAssuranceSection: String, val actionBadBase64: String, val backContentDescription: String)

Carries DebugMenuScreenStrings data through the SDAI presentation layer.

Link copied to clipboard
data class DebugMenuState(val screenModal: DebugMenuModal = DebugMenuModal.None, val localDiffusionAllowCancel: Boolean = false, val localDiffusionSchedulerThread: SchedulersToken = SchedulersToken.COMPUTATION, val showWorkManagerSection: Boolean = false, val showLocalDiffusionSection: Boolean = false, val showQualityAssuranceSection: Boolean = true) : MviState

Carries DebugMenuState data through the SDAI presentation layer.

Link copied to clipboard
class DebugMenuViewModel(val dispatchersProvider: DispatchersProvider, val preferenceManager: PreferenceManager, val debugInsertBadBase64UseCase: DebugInsertBadBase64UseCase, val router: DebugMenuRouter, val platformActions: DebugMenuPlatformActions, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<DebugMenuState, DebugMenuIntent, DebugMenuEffect>

Coordinates DebugMenuViewModel behavior in the SDAI presentation layer.

Link copied to clipboard

Provides the NoOpDebugMenuPlatformActions singleton used by the SDAI presentation layer.

Functions

Link copied to clipboard
private fun DebugMenuHeader(text: String, modifier: Modifier = Modifier)

Renders the DebugMenuHeader UI for the SDAI presentation layer.

Link copied to clipboard
private fun DebugMenuItem(text: String, modifier: Modifier = Modifier, startIcon: ImageVector? = null, showChevron: Boolean = true, endValueText: String = "", endValueContent: @Composable () -> Unit? = null, onClick: () -> Unit = {})

Renders the DebugMenuItem UI for the SDAI presentation layer.

Link copied to clipboard
fun DebugMenuScreen(modifier: Modifier = Modifier, onMessage: (String) -> Unit = {}, router: DebugMenuRouter? = null)

Renders the DebugMenuScreen UI for the SDAI presentation layer.

Link copied to clipboard

Renders the DebugMenuScreenContent UI for the SDAI presentation layer.

Link copied to clipboard

Renders the debugMenuScreenStrings UI for the SDAI presentation layer.

Link copied to clipboard
private fun RowScope.HeaderLine(modifier: Modifier = Modifier, inverse: Boolean = false)

Renders the HeaderLine UI for the SDAI presentation layer.

Link copied to clipboard

Converts SDAI data with mapToUi.

Link copied to clipboard

Renders the toContentState UI for the SDAI presentation layer.

Link copied to clipboard

Converts SDAI data with toIntent.