v1.0.7
Loan Operations
Fetch loan details, request report generation, and clear SDK state. Call clearSdkData on logout or session end to wipe all SDK state.
Fetch Loan Details
AbleCredit.fetchLoanDetails(this, loanReference) { result ->
when (result) {
is AbleCreditResult.Success -> {
val loan = result.data
Log.d("AbleCredit", "Fetched: ${loan?.data?.application?.id}")
}
is AbleCreditResult.Failure ->
Log.e("AbleCredit", "Fetch failed: ${result.message}")
}
}Request Report Generation
AbleCredit.requestReportGeneration(this, applicationId) { result ->
when (result) {
is AbleCreditResult.Success -> Log.d("AbleCredit", "Report requested")
is AbleCreditResult.Failure -> Log.e("AbleCredit", "Report failed: ${result.message}")
}
}Clear SDK Data
AbleCredit.clearSdkData { result ->
if (result is AbleCreditResult.Success) {
Log.d("AbleCredit", "SDK state cleared")
}
}Capture – Direct Calls
v1.0.7 uses direct calls only. Your app controls navigation and calls each SDK method. Use loanApplicationId as the capture parameter. Photo capture methods now accept an optional AbleCreditFileUploadListener.
Flutter Bridge
Full templates for the native Kotlin MainActivity bridge and the Dart wrapper class for v1.0.7.