requestConsent

open suspend override fun requestConsent(host: ConsentHost, showIfRequired: Boolean)(source)

Updates the consent information, then shows the form: only when UMP requires it when showIfRequired is true, always otherwise. Returns once the round trip has ended. UMP needs its entry points called on the main thread.

Parameters

host

The UI host needed by the UMP SDK.

Throws

when UMP fails or host can no longer show a form.