Package com.adobe.marketing.mobile
Class UserProfile
java.lang.Object
com.adobe.marketing.mobile.UserProfile
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the version of theUserProfileextensionstatic voidgetUserAttributes(List<String> keys, com.adobe.marketing.mobile.AdobeCallback<Map<String, Object>> callback) UserProfile API to get attributes with provided keys.static voidremoveUserAttributes(List<String> attributeNames) UserProfile API to remove attributes.static voidupdateUserAttributes(Map<String, Object> attributeMap) UserProfile API to set user profile attributes keys and values.
-
Field Details
-
EXTENSION
-
-
Method Details
-
extensionVersion
Returns the version of theUserProfileextension- Returns:
- The version as
String
-
updateUserAttributes
UserProfile API to set user profile attributes keys and values.If the attribute does not exist, it will be created. If the attribute already exists, then the value will be updated. A null attribute value will remove the attribute.
This API will generate a userprofile request event.
- Parameters:
attributeMap- HashMap of profile attributes key-value pairs to be set.
-
removeUserAttributes
UserProfile API to remove attributes.If the attribute does not exist, this API has no effects. If the attribute exists, then the User Attribute will be removed
- Parameters:
attributeNames- A List of attribute keys which have to be removed.
-
getUserAttributes
public static void getUserAttributes(@NonNull List<String> keys, @NonNull com.adobe.marketing.mobile.AdobeCallback<Map<String, Object>> callback) UserProfile API to get attributes with provided keys.- Parameters:
keys- Attribute key.callback- AnAdobeCallbackinvoked after profile attributes retrieved from memory
-