Package io.scanbot.sdk.ui.result
Interface ResultStorage
-
- All Implemented Interfaces:
public interface ResultStorage<T extends Object>
Stores and provides access to the scanning result of the given type by ResultId
-
-
Method Summary
Modifier and Type Method Description abstract Unit
putResult(String resultId, T result)
Puts the given result to the storage on the given id abstract T
getResult(String resultId)
Returns the result from the storage according to the given id abstract Unit
removeResult(String resultId)
Removes the result from the storage according to the given id abstract Unit
clear()
Removes all the results from the storage abstract Class<T>
getAcceptedType()
Each result repository works with a single class. -
-
Method Detail
-
putResult
abstract Unit putResult(String resultId, T result)
Puts the given result to the storage on the given id
- Parameters:
resultId
- id to store the result onresult
- result to store
-
getResult
abstract T getResult(String resultId)
Returns the result from the storage according to the given id
- Parameters:
resultId
- id to return the result from
-
removeResult
abstract Unit removeResult(String resultId)
Removes the result from the storage according to the given id
- Parameters:
resultId
- id to remove the result on
-
getAcceptedType
abstract Class<T> getAcceptedType()
Each result repository works with a single class.
-
-
-
-