requestUserConsent

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

Requests the user to consent to the privacy policy if it has not yet been accepted.

Return

True if the user consented or False if they did not.

Opens the privacy policy consent flow if the privacy policy has not yet been accepted or returns immediately with True if it has. 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.