CaptureViewModel

class CaptureViewModel @Inject constructor(context: Context, personRepository: PersonRepository, receiptRepository: ReceiptRepository, receiptDao: ReceiptDao, achievementEvaluator: AchievementEvaluator, autoAvatarManager: AutoAvatarManager, userPreferences: UserPreferences) : ViewModel

Constructors

Link copied to clipboard
@Inject
constructor(context: Context, personRepository: PersonRepository, receiptRepository: ReceiptRepository, receiptDao: ReceiptDao, achievementEvaluator: AchievementEvaluator, autoAvatarManager: AutoAvatarManager, userPreferences: UserPreferences)

Properties

Link copied to clipboard
val persons: StateFlow<List<Person>>

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
Link copied to clipboard
fun saveReceipt(personId: Long, categoryId: Long?, mediaPath: String, mediaType: String, isPositive: Boolean, note: String = "")
Link copied to clipboard
fun saveToInbox(mediaPath: String, mediaType: String)