requestUserConsentAsync

@DelicateCoroutinesApi
fun requestUserConsentAsync(context: Context, registry: ActivityResultRegistry): CompletableFuture<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. If an error occurs the future will complete exceptionally.

Parameters

context

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

registry

ActivityResultRegistry of the current activity.