Consent

actual class Consent(activity: Any?)

Create consent and privacy forms via the Google User Messaging Platform. Types are found under the Privacy & messaging tab of your AdMob account.

The UMP SDK attempts to display a privacy message created from the AdMob Application ID set in your project.

The Consent class requires a non-null Activity on Android

Parameters

activity

require non-null Activity on Android. All other platforms can pass null

expect class Consent(activity: Any?)

Create consent and privacy forms via the Google User Messaging Platform. Types are found under the Privacy & messaging tab of your AdMob account.

The UMP SDK attempts to display a privacy message created from the AdMob Application ID set in your project.

The Consent class requires the Activity be a non-null Context on Android

Parameters

activity

requires non-null Activity Context on Android. All other platforms can pass null

actual class Consent(activity: Any?)

Create consent and privacy forms via the Google User Messaging Platform. Types are found under the Privacy & messaging tab of your AdMob account.

The UMP SDK attempts to display a privacy message created from the AdMob Application ID set in your project.

The Consent class requires the Activity be a non-null Context on Android

Parameters

activity

require non-null Activity Context on Android. All other platforms can pass null

Constructors

Link copied to clipboard
actual constructor(activity: Any?)
expect constructor(activity: Any?)
actual constructor(activity: Any?)

Properties

Link copied to clipboard

Request ads with user consent

Link copied to clipboard

Check if a privacy options entry point is required

Functions

Link copied to clipboard
actual fun canRequestAds(): Boolean

Request ads with user consent

expect fun canRequestAds(): Boolean

Request ads with user consent

actual fun canRequestAds(): Boolean

Request ads with user consent

Link copied to clipboard

Check if a privacy options entry point is required

Check if a privacy options entry point is required

Check if a privacy options entry point is required

Link copied to clipboard
actual fun loadAndShowConsentForm(onError: (Exception) -> Unit)

Load and present the privacy message form

expect fun loadAndShowConsentForm(onError: (Exception) -> Unit)

Load and present the privacy message form

actual fun loadAndShowConsentForm(onError: (Exception) -> Unit)

Load and present the privacy message form

Link copied to clipboard
actual fun requestConsentInfoUpdate(onError: (Exception) -> Unit)

Gets the user's consent information

expect fun requestConsentInfoUpdate(onError: (Exception) -> Unit)

Gets the user's consent information

actual fun requestConsentInfoUpdate(onError: (Exception) -> Unit)

Gets the user's consent information

Link copied to clipboard
actual fun reset()

Reset consent state

expect fun reset()

Reset consent state

actual fun reset()

Reset consent state

Link copied to clipboard
actual fun showPrivacyOptionsForm(onDismissed: () -> Unit, onError: (Exception) -> Unit)

Present the privacy options form

expect fun showPrivacyOptionsForm(onDismissed: () -> Unit, onError: (Exception) -> Unit)

Present the privacy options form

actual fun showPrivacyOptionsForm(onDismissed: () -> Unit, onError: (Exception) -> Unit)

Present the privacy options form