[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/cpp/class/firebase/ump/consent-info [Back]  [Original]

firebase::ump::ConsentInfo Class Reference  |  Firebase Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

firebase::ump::ConsentInfo

#include <consent_info.h>

Consent Information class for the User Messaging Platform SDK.

Summary

The User Messaging Platform (UMP) SDK is Googles option to handle user privacy and consent in mobile apps.

This class contains all of the methods necessary for obtaining consent from the user.

Constructors and Destructors

~ConsentInfo()
Shut down the User Messaging Platform Consent SDK.

Public functions

CanRequestAds()
bool
Indicates whether the app has completed the necessary steps for gathering updated user consent.
GetConsentFormStatus()
Consent form status.
GetConsentStatus()
The users consent status.
GetPrivacyOptionsRequirementStatus()
Check whether the privacy options form needs to be displayed.
LoadAndShowConsentFormIfRequired(FormParent parent)
Future< void >
Loads a consent form and immediately presents it using the given FormParent, if ConsentStatus is kConsentStatusRequired.
LoadAndShowConsentFormIfRequiredLastResult()
Future< void >
Get the Future from the most recent call to LoadAndShowConsentFormIfRequired().
LoadConsentForm()
Future< void >
Loads a consent form.
LoadConsentFormLastResult()
Future< void >
Get the Future from the most recent call to LoadConsentForm().
RequestConsentInfoUpdate(const ConsentRequestParameters & params)
Future< void >
Requests consent information update.
RequestConsentInfoUpdateLastResult()
Future< void >
Get the Future from the most recent call to RequestConsentInfoUpdate().
Reset()
void
Clears all consent state from persistent storage.
ShowConsentForm(FormParent parent)
Future< void >
Presents the full screen consent form using the given FormParent, which is defined as an Activity on Android and a UIViewController on iOS.
ShowConsentFormLastResult()
Future< void >
Get the Future from the most recent call to ShowConsentForm().
ShowPrivacyOptionsForm(FormParent parent)
Future< void >
If GetPrivacyOptionsRequirementStatus() is kPrivacyOptionsRequirementStatusRequired, presents a privacy options form from the provided FormParent, which is defined as an Activity on Android and a UIViewController on iOS.
ShowPrivacyOptionsFormLastResult()
Future< void >
Get the Future from the most recent call to ShowPrivacyOptionsForm().

Public static functions

GetInstance(const ::firebase::App & app, InitResult *init_result_out)
Initializes the User Messaging Platform Consent SDK.
GetInstance(JNIEnv *jni_env, jobject activity, InitResult *init_result_out)
Initializes the User Messaging Platform Consent SDK without Firebase for Android.
GetInstance(InitResult *init_result_out)
Initializes User Messaging Platform for iOS without Firebase.

Public functions

Public static functions

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-10 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-10 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page