requestConsent

abstract suspend fun requestConsent(host: ConsentHost, showIfRequired: Boolean = true)(source)

Updates the consent information and shows the consent form: only when UMP requires it when showIfRequired is true, always otherwise. Returns once the round trip has ended. A caller that asks while a matching round trip is running waits for that one instead of starting another.

Parameters

host

The UI host needed by the UMP SDK.

Throws

when UMP fails or host is finishing, destroyed or off screen.