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); }