createReport

abstract fun createReport(activity: Activity, configuration: Configuration, request: RiskInsightsCreateReport, launchMode: LaunchMode, onSuccess: (TinkRiskInsightsSuccess) -> Unit, onError: (TinkError) -> Unit)

Risk Insights provides lenders with a sophisticated feature library based on real-time data to see the full extent of an end-user's repayment capacity.

This function allows users to authenticate with their bank and after that a risk insights report is generated on Tink backend. To fetch the generated report, use the TinkRiskInsightsSuccess.riskInsightsId identifier that is returned in the onSuccess callback.

Parameters

activity

the Activity that is launching this flow.

configuration

Configuration the configuration for this flow.

request

RiskInsightsCreateReport the request object for this flow.

launchMode

LaunchMode the mode in which this Tink flow is shown inside your app.

onSuccess

the callback in case of a successful outcome TinkRiskInsightsSuccess of this flow.

onError

the callback in case of a non-successful outcome TinkError of this flow or dismissed flow.