Share your feedback and help shape the Google Mobile Ads SDK roadmap. Take the Google Mobile Ads SDK Annual Survey for 2023 before it closes on May 5th, 2023.


Stay organized with collections Save and categorize content based on your preferences.
public final class UserMessagingPlatform extends Object

Entry point for the User Messaging Platform SDK.

Nested Class Summary

interface UserMessagingPlatform.OnConsentFormLoadFailureListener Interface definition for a callback to be invoked when a consent form failed to load. 
interface UserMessagingPlatform.OnConsentFormLoadSuccessListener Interface definition for a callback to be invoked when a consent form loads successfully. 

Public Method Summary

static ConsentInformation
getConsentInformation(Context context)
static void

Inherited Method Summary

Public Methods

public static ConsentInformation getConsentInformation (Context context)


public static void loadConsentForm (Context context, UserMessagingPlatform.OnConsentFormLoadSuccessListener successListener, UserMessagingPlatform.OnConsentFormLoadFailureListener failureListener)

Loads a ConsentForm.

Check that ConsentInformation.isConsentFormAvailable() returns true prior to calling this method.

context The context.
successListener The consent form load success listener.
failureListener The consent form load failure listener.