loadAndShowConsentForm

actual fun loadAndShowConsentForm(onLoaded: () -> Unit, onShown: () -> Unit, onError: (Exception) -> Unit)
expect fun loadAndShowConsentForm(onLoaded: () -> Unit = {}, onShown: () -> Unit = {}, onError: (Exception) -> Unit = {})

Loads and shows a consent form if one is required.

After getting the latest consent status with requestConsentInfoUpdate, call this function. If consent is needed, it loads and displays the appropriate form to the user. If no form is needed, onLoaded is called immediately.

Parameters

onLoaded

Called when the form is loaded (or if no form is needed).

onShown

Called when the form is shown to the user.

onError

Called when an error occurs during loading or showing the form, passing an Exception.

actual fun loadAndShowConsentForm(onLoaded: () -> Unit, onShown: () -> Unit, onError: (Exception) -> Unit)