public interface CreateTransactionAddDocumentListener
Modifier and Type | Method and Description |
---|---|
void |
addFileButtonPressed(Activity createTransactionActivity,
String transactionId,
int requestCode)
Gets called when the user taps AddDocument button on create transaction Activity provided by the SDK.
|
void addFileButtonPressed(Activity createTransactionActivity, String transactionId, int requestCode)
createTransactionActivity.startActivityForResult(<Your_Created_Intent>, requestCode)
When the picking is finished on your custom UI, set activity result to RESULT_OK
and provide to SDK with an Uri to selected file.
Note that the second method to set the document on transaction is to directly call CreateTransactionViewModel.addDocument(...)
createTransactionActivity
- The current activity presented from SDK that you can launch another activity from it.transactionId
- The unique identifier of the transaction waiting for the document.requestCode
- The request code provided by the createTransactionActivity, so that the activity can get results from your UI.