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
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
| Status | Meaning |
|---|---|
UPLOADING | Upload in progress |
UPLOADED | Successfully uploaded to the server |
FAILED | Upload failed – check message for reason |
Theming
The AbleCredit SDK ships with a default light-green + black palette. You can replace any or all colours by declaring the same token names in your own res/values/colors.xml. Android's resource-merge system picks your value at build time – no SDK API call required.
Mode 2 – Orchestrator Flow
A single call to AbleCredit.startLoanFlow() drives the entire loan capture journey. You declare an ordered list of steps and a listener. The SDK sequences screens automatically and delivers lifecycle events to your listener.