loadAndShowConsentForm

actual fun loadAndShowConsentForm(onError: (Exception) -> Unit)

Load and present the privacy message form

After you have received the most up-to-date consent status, call loadAndShowConsentForm to load any forms required to collect user consent. After loading, the forms present immediately.

Key Point: If no privacy message forms require collection of user consent prior to requesting ads, the callback is invoked immediately.

Parameters

onError

lambda which passes a ConsentException on failure

expect fun loadAndShowConsentForm(onError: (Exception) -> Unit)

Load and present the privacy message form

After you have received the most up-to-date consent status, call loadAndShowConsentForm to load any forms required to collect user consent. After loading, the forms present immediately.

Key Point: If no privacy message forms require collection of user consent prior to requesting ads, the callback is invoked immediately.

Parameters

onError

lambda which passes a ConsentException on failure

actual fun loadAndShowConsentForm(onError: (Exception) -> Unit)

Load and present the privacy message form

After you have received the most up-to-date consent status, call loadAndShowConsentForm to load any forms required to collect user consent. After loading, the forms present immediately.

Key Point: If no privacy message forms require collection of user consent prior to requesting ads, the callback is invoked immediately.

Parameters

onError

lambda which passes a ConsentException on failure