Consent
Manages consent and privacy forms using the Google User Messaging Platform (UMP) SDK.
This class helps you gather consent from your users, which is often a legal requirement (e.g., GDPR). The UMP SDK will attempt to display a privacy message that you configure in the "Privacy & messaging" tab of your AdMob account.
On Android, this class requires an Activity context. For other platforms, you can pass null.
Constructors
Properties
Functions
Link copied to clipboard
Checks if ads can be requested.
Link copied to clipboard
Checks if a privacy options entry point is required.
Link copied to clipboard
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.
actual fun loadAndShowConsentForm(onLoaded: () -> Unit, onShown: () -> Unit, onError: (Exception) -> Unit)
Link copied to clipboard
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.
expect fun requestConsentInfoUpdate(params: ConsentRequestParameters, onCompletion: () -> Unit = {}, onError: (Exception) -> Unit = {})
Requests an update of the user's consent information with specific parameters.
actual fun requestConsentInfoUpdate(params: ConsentRequestParameters, onCompletion: () -> Unit, onError: (Exception) -> Unit)
Link copied to clipboard
Shows the privacy options form.