requestConsentInfoUpdate

actual fun requestConsentInfoUpdate(onCompletion: () -> Unit, onError: (Exception) -> Unit)
actual fun requestConsentInfoUpdate(params: ConsentRequestParameters, onCompletion: () -> Unit, onError: (Exception) -> Unit)
expect fun requestConsentInfoUpdate(onCompletion: () -> Unit = {}, onError: (Exception) -> Unit = {})

Requests an update of the user's consent information.

You should call this at every app launch to determine if consent is required and whether a privacy options entry point needs to be shown.

Parameters

onCompletion

Called when the operation is successful.

onError

Called when the operation fails, passing an Exception.


expect fun requestConsentInfoUpdate(params: ConsentRequestParameters, onCompletion: () -> Unit = {}, onError: (Exception) -> Unit = {})

Requests an update of the user's consent information with specific parameters.

You should call this at every app launch. This overload allows you to provide ConsentRequestParameters for the request, for example to specify debug settings.

Parameters

params

The parameters for the consent information request.

onCompletion

Called when the operation is successful.

onError

Called when the operation fails, passing an Exception.

actual fun requestConsentInfoUpdate(onCompletion: () -> Unit, onError: (Exception) -> Unit)
actual fun requestConsentInfoUpdate(params: ConsentRequestParameters, onCompletion: () -> Unit, onError: (Exception) -> Unit)