Package 

Class Inquiry.Contract

  • All Implemented Interfaces:

    
    public final class Inquiry.Contract
    extends ActivityResultContract<Inquiry, InquiryResponse>
                        

    Contract to initiate and get the result from an Inquiry flow by using registerForActivityResult.

    val getInquiryResult = registerForActivityResult(Inquiry.Contract()) { result ->
      when(result) {
        is InquiryResponse.Complete -> {}
        is InquiryResponse.Cancel -> {}
        is InquiryResponse.Error -> {}
      }
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Intent createIntent(Context context, Inquiry input)
      InquiryResponse parseResult(Integer resultCode, Intent intent)
      • Methods inherited from class com.withpersona.sdk.inquiry.Inquiry.Contract

        getSynchronousResult
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait