public static void RemoveUserAttributes(List <string> attributeNames) { #if UNITY_IPHONE && !UNITY_EDITOR acp_RemoveUserAttributes(ACPUserProfileHelpers.JsonStringFromStringList(attributeNames)); #elif UNITY_ANDROID && !UNITY_EDITOR userProfile.CallStatic("removeUserAttributes", ACPUserProfileHelpers.GetListFromList(attributeNames)); #endif }
public static void UpdateUserAttributes(Dictionary <string, object> attributeMap) { #if UNITY_IPHONE && !UNITY_EDITOR acp_UpdateUserAttributes(ACPUserProfileHelpers.JsonStringFromDictionary(attributeMap)); #elif UNITY_ANDROID && !UNITY_EDITOR userProfile.CallStatic("updateUserAttributes", ACPUserProfileHelpers.GetHashMapFromDictionary(attributeMap)); #endif }
void call(AndroidJavaObject retrievedAttributes) { if (retrievedAttributes == null) { redirectedDelegate(""); return; } Dictionary <string, object> userAttrs = ACPUserProfileHelpers.GetDictionaryFromHashMap(retrievedAttributes); string result = ACPUserProfileHelpers.JsonStringFromDictionary(userAttrs); redirectedDelegate(result); }
public static void GetUserAttributes(List <string> attributeKeys, AdobeGetUserAttributesCallback callback) { if (callback == null) { Debug.Log("Failed to perform GetUserAttributes, callback is null"); return; } #if UNITY_IPHONE && !UNITY_EDITOR acp_GetUserAttributes(ACPUserProfileHelpers.JsonStringFromStringList(attributeKeys), callback); #elif UNITY_ANDROID && !UNITY_EDITOR userProfile.CallStatic("getUserAttributes", ACPUserProfileHelpers.GetListFromList(attributeKeys), new GetUserAttributesCallback(callback)); #endif }