# GoogleMobileAds.Ump.Api.ConsentForm

A rendered form for collecting consent from a user.

## Summary

| ### Public static functions ||
|---|---|
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/ump/api/consent-form#class_google_mobile_ads_1_1_ump_1_1_api_1_1_consent_form_1af298443dbc31debf7f03da00af1fa72e(Action< https://developers.google.com/admob/unity/reference/class/google-mobile-ads/ump/api/consent-form#class_google_mobile_ads_1_1_ump_1_1_api_1_1_consent_form, https://developers.google.com/admob/unity/reference/class/google-mobile-ads/ump/api/form-error#class_google_mobile_ads_1_1_ump_1_1_api_1_1_form_error > formLoadCallback)` | `void` Loads a consent form. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/ump/api/consent-form#class_google_mobile_ads_1_1_ump_1_1_api_1_1_consent_form_1a8f1748d822a64ba3a90b4af51383e5a7(Action< https://developers.google.com/admob/unity/reference/class/google-mobile-ads/ump/api/form-error#class_google_mobile_ads_1_1_ump_1_1_api_1_1_form_error > onDismissed)` | `void` Load and show the consent form when the user consent is required but not yet obtained. |
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/ump/api/consent-form#class_google_mobile_ads_1_1_ump_1_1_api_1_1_consent_form_1a5c231fce4ff4e65b79d4f50ad82478ff(Action< https://developers.google.com/admob/unity/reference/class/google-mobile-ads/ump/api/form-error#class_google_mobile_ads_1_1_ump_1_1_api_1_1_form_error > onDismissed)` | `void` Show the privacy options form when the privacy options button is required. |

| ### Public functions ||
|---|---|
| `https://developers.google.com/admob/unity/reference/class/google-mobile-ads/ump/api/consent-form#class_google_mobile_ads_1_1_ump_1_1_api_1_1_consent_form_1a7d42375de90e934a03a820cc3422f985(Action< https://developers.google.com/admob/unity/reference/class/google-mobile-ads/ump/api/form-error#class_google_mobile_ads_1_1_ump_1_1_api_1_1_form_error > onDismissed)` | `void` Shows the consent form. |

## Public static functions

### Load

```c#
void Load(
  Action< ConsentForm, FormError > formLoadCallback
)
```
Loads a consent form.

<br />

Details Parameters `formLoadCallback` Called when the client loads a consent form or returns an error.

### LoadAndShowConsentFormIfRequired

```c#
void LoadAndShowConsentFormIfRequired(
  Action< FormError > onDismissed
)
```
Load and show the consent form when the user consent is required but not yet obtained.

<br />

Details Parameters `onDismissed` The listener that gets called when the consent form is dismissed or fails to show.

### ShowPrivacyOptionsForm

```c#
void ShowPrivacyOptionsForm(
  Action< FormError > onDismissed
)
```
Show the privacy options form when the privacy options button is required.

<br />

Details Parameters `onDismissed` The listener that gets called when the privacy options form is dismissed or fails to show.

## Public functions

### Show

```c#
void Show(
  Action< FormError > onDismissed
)
```
Shows the consent form.

<br />

Details Parameters `onDismissed` Called when the consent form is dismissed.