Method CheckForRequiredConsents
CheckForRequiredConsents()
Returns identifiers of required consents we need to gather from the user
in order to be allowed to sent analytics events.
This method must be called every time the game starts - without checking the geolocation,
no event will be sent (even if the consent was already given).
If the required consent was already given, an empty list is returned.
If the user already opted out from the current legislation, an empty list is returned.
It involves the GeoIP call.
ConsentCheckException
is thrown if the GeoIP call was unsuccessful.
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")]
Task<List<string>> CheckForRequiredConsents()
Returns
Type | Description |
---|---|
Task<List<string>> | A list of consent identifiers that are required for sending analytics events. |
Exceptions
Type | Condition |
---|---|
ConsentCheckException | Thrown if the GeoIP call was unsuccessful. |