ResultWrapper

data class ResultWrapper<T>(val resultId: ResultId, val clazz: Class<T>) : Parcelable

Result wrapper which points to the specific result in one of ResultRepository based on clazz

To get access to the full result object it is needed to do the following:

val resultWrapper: ResultWrapper val result = ScanbotSDK(context).resultRepositoryForClass(resultWrapper.clazz).getResultAndErase(resultWrapper.resultId) The result object will contain the full GenericDocument object

Parameters

resultId

raw id implementation (String)

clazz

class to help to get the correct repository from ScanbotSDK

Constructors

Link copied to clipboard
constructor(resultId: ResultId, clazz: Class<T>)

Properties

Link copied to clipboard
val clazz: Class<T>
Link copied to clipboard