BarcodeScannerUiResultInternalLruStorage

Stores and provides access to the scanning result of the given type by ResultId This implementation uses LRU cache as a storage to keep the memory usage low even if many results will be added to the storage

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Each result repository works with a single class.

Functions

Link copied to clipboard
open override fun clear()

Removes all the results from the storage

Link copied to clipboard
open override fun getResult(resultId: String): BarcodeScannerUiResultInternal?

Returns the result from the storage according to the given id

Link copied to clipboard
open override fun putResult(resultId: String, result: BarcodeScannerUiResultInternal)

Puts the given result to the storage on the given id

Link copied to clipboard
open override fun removeResult(resultId: String)

Removes the result from the storage according to the given id