updateConsent

abstract fun updateConsent(activity: Activity, configuration: Configuration, request: AccountCheckUpdateConsent, launchMode: LaunchMode, onSuccess: (TinkAccountCheckUpdateConsentSuccess) -> Unit, onError: (TinkError) -> Unit)

Account Check lets you confirm the owner of a bank account by fetching real-time data from banks for private users.

This function Launches the flow for updating consent on continuous access to Account Check.

Parameters

activity

the Activity that is launching this flow.

configuration

Configuration the configuration for this flow.

request

AccountCheckUpdateConsent 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 TinkAccountCheckUpdateConsentSuccess of this flow.

onError

the callback in case of a non-successful outcome TinkError of this flow or dismissed flow. For detailed explanation, please refer to update-a-consent.