ProductPhotosViewModel

class ProductPhotosViewModel @Inject constructor(    productsAPI: ProductsAPI,     productRepository: ProductRepository,     savedStateHandle: SavedStateHandle) : ViewModel

Constructors

Link copied to clipboard
@Inject
fun ProductPhotosViewModel(    productsAPI: ProductsAPI,     productRepository: ProductRepository,     savedStateHandle: SavedStateHandle)

Types

Link copied to clipboard
sealed class State

Functions

Link copied to clipboard
open fun addCloseable(@NonNull p0: Closeable)
Link copied to clipboard
fun editImage(product: Product, imgMap: Map<String, String>)

Properties

Link copied to clipboard
val imageNames: StateFlow<List<String>>
Link copied to clipboard
val stateFlow: SharedFlow<ProductPhotosViewModel.State>