GoogleUserMessagingPlatform Framework Reference
enum UMPFormStatus : NSInteger {}
State values for whether the user has a consent form available to them. To check whether form
status has changed, an update can be requested through
requestConsentInfoUpdateWithParameters:completionHandler.
-
Whether a consent form is available is unknown. An update should be requested using
requestConsentInfoUpdateWithParameters:completionHandler.
Declaration
Objective-C
UMPFormStatusUnknown = 0
-
Consent forms are available and can be loaded using [UMPConsentForm
loadWithCompletionHandler:]
Declaration
Objective-C
UMPFormStatusAvailable = 1
-
Consent forms are unavailable. Showing a consent form is not required.
Declaration
Swift
case unavailable = 2
Objective-C
UMPFormStatusUnavailable = 2
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 2024-12-04 UTC.
[null,null,["Last updated 2024-12-04 UTC."],[[["`UMPFormStatus` indicates whether a user has a consent form available."],["You can request an update on form status using `requestConsentInfoUpdateWithParameters:completionHandler`."],["The possible states are `unknown`, `available`, and `unavailable`, reflecting the availability of the consent form."],["When the status is `available`, you can load the consent form using `[UMPConsentForm loadWithCompletionHandler:]`."],["If the status is `unavailable`, displaying a consent form is not necessary."]]],["The `UMPFormStatus` enum indicates the availability of user consent forms. `UMPFormStatusUnknown` means availability is unknown and requires an update request. `UMPFormStatusAvailable` signifies that forms can be loaded. `UMPFormStatusUnavailable` denotes that consent forms are not needed. To check for status changes, use `requestConsentInfoUpdateWithParameters:completionHandler`. The status is represented numerically in Swift and Objective-C, with unknown as 0, available as 1 and unavailable as 2.\n"]]