docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ProvideOptInConsent

    ProvideOptInConsent(string, bool)

    Sets the consent status for the specified opt-in-based legislation (PIPL etc). The required legislation identifier can be found by calling CheckForRequiredConsents method. If this method is tried to be used for the incorrect legislation (PIPL outside China etc), the ConsentCheckException is thrown.

    Declaration
    [Obsolete("This method is part of the old consent flow and should no longer be used. For more information, please see the migration guide: https://docs.unity.com/ugs/en-us/manual/analytics/manual/sdk5-migration-guide")]
    void ProvideOptInConsent(string identifier, bool consent)
    Parameters
    Type Name Description
    string identifier

    The legislation identifier for which the consent status should be changed.

    bool consent

    The consent status which should be set for the specified legislation.

    Exceptions
    Type Condition
    ConsentCheckException

    Thrown if the incorrect legislation was being provided or the required consent flow cannot be determined.

    In This Article
    Back to top
    Copyright © 2023 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)