Class ResultWrapper

  • All Implemented Interfaces:
    android.os.Parcelable

    
    public final class ResultWrapper<T extends Object>
     implements 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<GenericDocument> val result = ScanbotSDK(context).resultRepositoryForClass(resultWrapper.clazz).getResultAndErase(resultWrapper.resultId) The result object will contain the full GenericDocument object

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getResultId()
      final Class<T> getClazz()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResultWrapper

        ResultWrapper(String resultId, Class<T> clazz)
        Parameters:
        resultId - raw id implementation (String)
        clazz - class to help to get the correct repository from ScanbotSDK