Version: 2.1.3

UI Elements

Progress Dialog#

BharatX SDK automatically shows a progress dialog when the user wants to make a BharatX transaction during the BharatXCommonUtilManager.confirmTransactionWithUser flow. However, it is your responsibility to show/hide the progress bar once the user confirms the transaction.

To close the progress dialog:

Your Android App
// show the progress dialog
BharatXCommonUtilManager.showBharatXProgressDialog(this);
// close the progress dialog
BharatXCommonUtilManager.closeBharatXProgressDialog();

Transaction Success/Failure Dialog#

note

Showing this dialog is optional. However, we recommend it to ensure the user has a consistent experience with BharatX, resulting an improvement in the UX of your app.

When your app checks with your server (which makes an S2S call to our server) about the status of the transaction, and the status is a definite success or failure, you can use the following method to show the Transaction Success/Failure Dialog.

Your Android App
boolean isTransactionSuccessful = // from your server; type boolean
BharatXCommonUtilManager.showTransactionStatusDialog(this,
isTransactionSuccessful,
new BharatXCommonUtilManager.TransactionStatusShowListener() {
void onStatusDialogClose() {
// transaction status dialog closed. your app has control now.
}
}
);