docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CheckGeoIP

    CheckGeoIP()

    Triggers the GeoIP call, if no geolocation data was already stored for this session, otherwise returns the last GeoIP response. Updates the consent status of PIPL legislation to reflect the current requirements (if it was previously set as Unknown, Not Required or Required But Unchecked) If the consent was already denied/given, but PIPL is not required anymore, the status is not changed.

    ConsentCheckException is thrown if the GeoIP call was unsuccessful.

    Declaration
    public Task<GeoIPResponse> CheckGeoIP()
    Returns
    Type Description
    Task<GeoIPResponse>

    GeoIPResponse object which maps the GeoIP response.

    Implements
    IConsentTracker.CheckGeoIP()
    Exceptions
    Type Condition
    ConsentCheckException

    Thrown if the GeoIP call was unsuccessful.

    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)