request Consent Info Update
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
on Completion
Called when the operation is successful.
on Error
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.
on Completion
Called when the operation is successful.
on Error
Called when the operation fails, passing an Exception.
actual fun requestConsentInfoUpdate(params: ConsentRequestParameters, onCompletion: () -> Unit, onError: (Exception) -> Unit)