docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsConsentDenied

    IsConsentDenied()

    Checks if the consent was denied or the user already opted-out.

    If the required legislation is PIPL, it takes priority over any other legislation. Even if the user did not opt out from CCPA/GDPR/etc, but denied consent for PIPL, this method will return true. If PIPL is not required, the method does not take into account PIPL consent status. It requires CheckGeoIP method to be called beforehand.

    If the user already started the process of opting out, but it wasn't finished yet, the method will return false.

    Declaration
    public bool IsConsentDenied()
    Returns
    Type Description
    bool

    A boolean value whether the required consent was either denied or the user opted out.

    Implements
    IConsentTracker.IsConsentDenied()
    Exceptions
    Type Condition
    ConsentCheckException

    Thrown if the required consent flow cannot be determined.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)