Package com.flurry.android
Class FlurryConsent
java.lang.Object
com.flurry.android.Consent
com.flurry.android.FlurryConsent
-
Field Summary
Fields inherited from class com.flurry.android.Consent
consentStrings, GPP_SID_KEY, GPP_STRING_KEY, isGdprScope
-
Constructor Summary
ConstructorDescriptionFlurryConsent
(boolean isGdprScope, Map<String, String> consentStrings) Create an instance of FlurryConsentFlurryConsent
(String gppString, Set<Integer> gppSectionIds) Create an instance of FlurryConsent for the IAB Global Privacy Platform (GPP). -
Method Summary
Methods inherited from class com.flurry.android.Consent
equals, getConsentStrings, getGppSectionIds, getGppString, hashCode, idsToString, isGdprScope
-
Constructor Details
-
FlurryConsent
Create an instance of FlurryConsentTo pass an IAB string to Flurry:
// 1. Create an instance of map which use 'iab' as key and base64 encoded IAB string as value Map<String, String> consentString = new HashMap<>(); consentString.put("iab", "BOEFEAyOEFEAyAHABDENAI4AAAB9vABAASA"); // 2. Create an instance of FlurryConsent of which 'isGdprScope' with the map containing IAB string FlurryConsent consent = new FlurryConsent(true, consentString); // 3. Pass the consent to Flurry // Update Flurry Consent at runtime FlurryAgent.updateFlurryConsent(consent); // Pass the consent during Flurry's initialization new FlurryAgent.Builder().withConsent(consent).build(...);
- Parameters:
isGdprScope
- if app is from an Europe company or app's user is from Europe, set to true otherwise set to falseconsentStrings
- if isGdprScope flag is set to true, app is mandatory to provide corresponding consent string
-
FlurryConsent
Create an instance of FlurryConsent for the IAB Global Privacy Platform (GPP).- Parameters:
gppString
- IAB GPP String.gppSectionIds
- Integer set of IAB GPP section ids that are applicable for this bid request.
-