Skip to content

Commit

Permalink
Add additional ConsentType enums to sample
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maurice committed Feb 21, 2024
1 parent 89be7d9 commit 604fe49
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,17 @@ public void AnalyticsSetConsent() {
FirebaseAnalytics.SetConsent(new Dictionary<ConsentType, ConsentStatus>()
{
{ ConsentType.AnalyticsStorage, ConsentStatus.Denied },
{ ConsentType.AdStorage, ConsentStatus.Denied }
{ ConsentType.AdStorage, ConsentStatus.Denied },
{ ConsentType.AdUserData, ConsentStatus.Denied },
{ ConsentType.AdPersonalization, ConsentStatus.Denied }
});
FirebaseAnalytics.SetConsent(new Dictionary<ConsentType, ConsentStatus>());
FirebaseAnalytics.SetConsent(new Dictionary<ConsentType, ConsentStatus>()
{
{ ConsentType.AnalyticsStorage, ConsentStatus.Granted },
{ ConsentType.AdStorage, ConsentStatus.Granted }
{ ConsentType.AdStorage, ConsentStatus.Granted },
{ ConsentType.AdUserData, ConsentStatus.Granted },
{ ConsentType.AdPersonalization, ConsentStatus.Granted }
});
}

Expand Down

0 comments on commit 604fe49

Please sign in to comment.