-
- All Implemented Interfaces:
public 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 -> {} } }
-
-
Constructor Summary
Constructors Constructor Description Inquiry.Contract(Context context)
Inquiry.Contract()
-
Method Summary
Modifier and Type Method Description Intent
createIntent(Context context, Inquiry input)
InquiryResponse
parseResult(Integer resultCode, Intent intent)
-
-
Constructor Detail
-
Inquiry.Contract
Inquiry.Contract(Context context)
-
Inquiry.Contract
Inquiry.Contract()
-
-
Method Detail
-
createIntent
Intent createIntent(Context context, Inquiry input)
-
parseResult
InquiryResponse parseResult(Integer resultCode, Intent intent)
-
-
-
-