public class GenericDocumentResultRepository
Provides access to the scanning result of the given type by ResultId The current implementation of the repository keeps the result only in RAM and does not store anything on the persistent storage It is important to persist the data manually if it is needed to be used after the restart of the process of the application Be careful when processing the intent with ResultId in onCreate method of the Activity as it may be recreated after the termination of the process
public GenericDocumentResultRepository(@NotNull
io.scanbot.sdk.ui.result.ResultStorage<io.scanbot.genericdocument.entity.GenericDocument> storage)
Provides access to the scanning result of the given type by ResultId The current implementation of the repository keeps the result only in RAM and does not store anything on the persistent storage It is important to persist the data manually if it is needed to be used after the restart of the process of the application Be careful when processing the intent with ResultId in onCreate method of the Activity as it may be recreated after the termination of the process
@NotNull
public io.scanbot.sdk.ui.result.ResultWrapper<io.scanbot.genericdocument.entity.GenericDocument> addResult(@NotNull
io.scanbot.genericdocument.entity.GenericDocument result)
@Nullable
public io.scanbot.genericdocument.entity.GenericDocument getResult(@NotNull
java.lang.String resultId)
@Nullable
public io.scanbot.genericdocument.entity.GenericDocument getResultAndErase(@NotNull
java.lang.String resultId)
public void removeResult(@NotNull
java.lang.String resultId)
public void clear()
@NotNull public java.lang.Class<io.scanbot.genericdocument.entity.GenericDocument> getAcceptedType()
@NotNull public io.scanbot.sdk.ui.result.ResultStorage<io.scanbot.genericdocument.entity.GenericDocument> getStorage()