Kamera funktionalität

-AlbumAndroidViewModel
-AlbumEvents
-AlbumViewModel
-AlbumViewState
This commit is contained in:
2025-12-17 19:28:59 +01:00
parent b0195b4e50
commit 9048d31413
4 changed files with 283 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package com.example.snapandsolve.camera
import android.net.Uri
import androidx.compose.ui.graphics.ImageBitmap
/**
* Holds state data for the MainScreen composable.
*/
data class AlbumViewState(
/**
* holds the URL of the temporary file which stores the image taken by the camera.
*/
val tempFileUrl: Uri? = null,
/**
* holds the list of images taken by camera or selected pictures from the gallery.
*/
val selectedPictures: List<ImageBitmap> = emptyList(),
)