Skip to Content
Docs
Get startedPartner API v4Partner API v3Android SDK
v1.0.9

Mode 1 – Direct Calls

The lowest-level integration. Your app calls each SDK capture screen individually and owns all navigation between them. The SDK screens have no built-in "Next" button – they open, the user completes the task, and they close.

All capture methods take loanApplicationId – pass the internal application _id returned by createNewLoanCase.

Typical Mode 1 flow

configure()
→
createNewLoanCase()
→
recordAudio(loanApplicationId)
→
capturePhotos(loanApplicationId)
→
requestReport(loanApplicationId)

Code

AbleCredit.recordAudio(
    context           = this,
    loanApplicationId = applicationId,   // _id from createNewLoanCase response
    listener          = object : AbleCreditFileUploadListener {
        override fun onStatusChanged(
            uniqueId: String,
            status  : AbleCreditFileStatus,
            message : String?
        ) {
            Log.d("AbleCredit", "[ $status ] id=$uniqueId")
        }
    }
)

val photoListener = object : AbleCreditFileUploadListener {
    override fun onStatusChanged(uniqueId: String, status: AbleCreditFileStatus, message: String?) {
        Log.d("AbleCredit", "[ $status ] id=$uniqueId")
    }
}

AbleCredit.captureBusinessPhotos(this, applicationId, photoListener)
AbleCredit.captureFamilyPhotos(this, applicationId, photoListener)
AbleCredit.captureCollateralPhotos(this, applicationId, photoListener)

Upload status file states

StatusMeaning
UPLOADINGUpload in progress
UPLOADEDSuccessfully uploaded to the server
FAILEDUpload failed – check message for reason

On this page