load And Show Consent Form
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
on Loaded
Called when the form is loaded (or if no form is needed).
on Shown
Called when the form is shown to the user.
on Error
Called when an error occurs during loading or showing the form, passing an Exception.
actual fun loadAndShowConsentForm(onLoaded: () -> Unit, onShown: () -> Unit, onError: (Exception) -> Unit)