Package-level declarations

Types

Link copied to clipboard
internal class AndroidGalleryDetailPlatformActions(val context: Context, val fileProviderDescriptor: FileProviderDescriptor, val dispatchersProvider: DispatchersProvider, val base64ToBitmapConverter: Base64ToBitmapConverter, val imageSaver: ImageSaver) : GalleryDetailPlatformActions, FileSavableExporter.BmpToFile

Coordinates AndroidGalleryDetailPlatformActions behavior in the SDAI presentation layer.

Link copied to clipboard
sealed interface GalleryDetailActionResult

Defines the GalleryDetailActionResult contract for the SDAI presentation layer.

Link copied to clipboard
data class GalleryDetailContent(val showReportButton: Boolean = false, val generationType: AiGenerationResult.Type, val id: Long, val imageBase64: String, val image: ImageBitmap?, val inputImageBase64: String?, val inputImage: ImageBitmap?, val createdAt: String, val type: String, val prompt: String, val negativePrompt: String, val size: String, val samplingSteps: String, val cfgScale: String, val restoreFaces: String, val sampler: String, val seed: String, val subSeed: String, val subSeedStrength: String, val denoisingStrength: String, val hidden: Boolean)

Carries GalleryDetailContent data through the SDAI presentation layer.

Link copied to clipboard

Defines the GalleryDetailDialog contract for the SDAI presentation layer.

Link copied to clipboard
sealed interface GalleryDetailIntent : MviIntent

Defines the GalleryDetailIntent contract for the SDAI presentation layer.

Link copied to clipboard

Defines the GalleryDetailPlatformActions contract for the SDAI presentation layer.

Link copied to clipboard
data class GalleryDetailState(val loading: Boolean = true, val tabs: List<GalleryDetailTab> = emptyList(), val selectedTab: GalleryDetailTab = GalleryDetailTab.IMAGE, val dialog: GalleryDetailDialog = GalleryDetailDialog.None, val content: GalleryDetailContent? = null) : MviState

Carries GalleryDetailState data through the SDAI presentation layer.

Link copied to clipboard

Coordinates GalleryDetailTab behavior in the SDAI presentation layer.

Link copied to clipboard
class GalleryDetailViewModel(val itemId: Long, val dispatchersProvider: DispatchersProvider, val buildInfoProvider: BuildInfoProvider, val getGenerationResultUseCase: GetGenerationResultUseCase, val getLastResultFromCacheUseCase: GetLastResultFromCacheUseCase, val deleteGalleryItemUseCase: DeleteGalleryItemUseCase, val toggleImageVisibilityUseCase: ToggleImageVisibilityUseCase, val generationFormUpdateEvent: GenerationFormUpdateEvent, val router: GalleryDetailRouter, val platformActions: GalleryDetailPlatformActions, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<GalleryDetailState, GalleryDetailIntent, EmptyEffect>

Coordinates GalleryDetailViewModel behavior in the SDAI presentation layer.

Link copied to clipboard

Coordinates IosGalleryDetailPlatformActions behavior in the SDAI presentation layer.

Link copied to clipboard

Provides the NoOpGalleryDetailPlatformActions singleton used by the SDAI presentation layer.

Properties

Link copied to clipboard
private const val APPLE_REFERENCE_EPOCH_SECONDS: Double = 9.783072E8

Exposes the APPLE_REFERENCE_EPOCH_SECONDS value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the GalleryDetailTab value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the GalleryDetailTab value used by the SDAI presentation layer.

Functions

Creates the SDAI value produced by createDefaultGalleryDetailPlatformActions.

Creates the SDAI value produced by createDefaultGalleryDetailPlatformActions.

Creates the SDAI value produced by createDefaultGalleryDetailPlatformActions.

Link copied to clipboard
internal actual fun formatGalleryCreatedAt(epochMillis: Long): String

Executes the formatGalleryCreatedAt step in the SDAI presentation layer.

internal expect fun formatGalleryCreatedAt(epochMillis: Long): String

Executes the formatGalleryCreatedAt step in the SDAI presentation layer.

internal actual fun formatGalleryCreatedAt(epochMillis: Long): String

Executes the formatGalleryCreatedAt step in the SDAI presentation layer.

Link copied to clipboard
internal fun GalleryDetailActionButton(modifier: Modifier = Modifier, icon: @Composable () -> Unit, label: String, onClick: () -> Unit)

Renders the GalleryDetailActionButton UI for the SDAI presentation layer.

Link copied to clipboard
internal fun GalleryDetailCell(modifier: Modifier = Modifier, text: String, color: Color)

Renders the GalleryDetailCell UI for the SDAI presentation layer.

Link copied to clipboard
internal fun GalleryDetailContentState(modifier: Modifier = Modifier, state: GalleryDetailState, content: GalleryDetailContent, onCopyTextClick: (String) -> Unit = {})

Renders the GalleryDetailContentState UI for the SDAI presentation layer.

Link copied to clipboard

Renders the GalleryDetailDialogRenderer UI for the SDAI presentation layer.

Link copied to clipboard

Renders the GalleryDetailNavigationBar UI for the SDAI presentation layer.

Link copied to clipboard
internal fun GalleryDetailRow(modifier: Modifier = Modifier, column1Weight: Float = 0.4f, column2Weight: Float = 0.6f, name: String, value: String, color: Color, onCopyTextClick: (String) -> Unit = {})

Renders the GalleryDetailRow UI for the SDAI presentation layer.

Link copied to clipboard
fun GalleryDetailScreen(itemId: Long, modifier: Modifier = Modifier, router: GalleryDetailRouter? = null)

Renders the GalleryDetailScreen UI for the SDAI presentation layer.

Link copied to clipboard
fun GalleryDetailScreenContent(modifier: Modifier = Modifier, state: GalleryDetailState, processIntent: (GalleryDetailIntent) -> Unit = {})

Renders the GalleryDetailScreenContent UI for the SDAI presentation layer.

Link copied to clipboard
internal fun GalleryDetailsTable(modifier: Modifier = Modifier, content: GalleryDetailContent, onCopyTextClick: (String) -> Unit = {})

Renders the GalleryDetailsTable UI for the SDAI presentation layer.

Link copied to clipboard

Executes the paramsText step in the SDAI presentation layer.

Link copied to clipboard
private fun UIApplication.rootViewController(): UIViewController?

Executes the rootViewController step in the SDAI presentation layer.

Link copied to clipboard

Executes the selectedImageBase64 step in the SDAI presentation layer.

Link copied to clipboard

Renders the toGalleryDetailContent UI for the SDAI presentation layer.

Link copied to clipboard
private fun UIViewController.topMostPresentedViewController(): UIViewController

Converts SDAI data with topMostPresentedViewController.