requestUserConsent

suspend fun requestUserConsent(context: Context, registry: ActivityResultRegistry): Boolean

Requests the user consent to any pending legal documents.

Return

True if the user consented to all mandatory documents or False if they did not.

Opens the legal document consent flow if consents are pending or returns immediately with True if all consents are satisfied.

Parameters

context

Android context that will be used to start the consent request activity.

registry

ActivityResultRegistry of the current activity.