v1.0.9
Upload Listener
Two listener options for tracking file upload status – a per-call listener scoped to one screen, and a process-wide listener that receives events from all screens simultaneously.
Process-wide upload listener
// Register once at app startup
AbleCredit.setUploadStatusListener(object : AbleCreditUploadStatusListener {
override fun onUploadStatusChanged(
applicationId: String?,
sectionName : String?, // "business_photos", "family_photos", "collateral_photos"
fileType : String?, // "audio" or "image"
uniqueId : String,
status : AbleCreditFileStatus,
message : String?,
) {
// Delivered on the main thread – safe to update UI
}
})
// Clear on logout
AbleCredit.setUploadStatusListener(null)Suppress SDK UI chrome (optional)
// Hide the SDK's back-arrow header (if your app already has a toolbar)
AbleCredit.setShowSdkHeader(false)
// Suppress SDK success/failure toasts (if you show your own)
AbleCredit.setSdkToastsEnabled(false)