Class Consent
java.lang.Object
com.adobe.marketing.mobile.edge.consent.Consent
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the version of theConsentextensionstatic voidgetConsents(com.adobe.marketing.mobile.AdobeCallback<Map<String, Object>> callback) Retrieves the current consent preferences stored in the Consent extensionstatic voidMerges the existing consents with the given consents.
-
Field Details
-
EXTENSION
-
-
Method Details
-
extensionVersion
Returns the version of theConsentextension- Returns:
- The version as
String
-
update
Merges the existing consents with the given consents. Duplicate keys will take the value of those passed in the APIInput example: {"consents": {"collect": {"val": "y"}}}
- Parameters:
consents- AMapof consents to be merged with the existing consents
-
getConsents
public static void getConsents(@NonNull com.adobe.marketing.mobile.AdobeCallback<Map<String, Object>> callback) Retrieves the current consent preferences stored in the Consent extensionOutput example: {"consents": {"collect": {"val": "y"}}}
- Parameters:
callback- TheAdobeCallbackis invoked with the current consent preferences. If anAdobeCallbackWithErroris provided, anAdobeErroris returned when an unexpected error occurs or the request timed out
-