Esempio n. 1
0
 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
 }
Esempio n. 2
0
        void call(AndroidJavaObject retrievedAttributes)
        {
            if (retrievedAttributes == null)
            {
                redirectedDelegate("");
                return;
            }

            Dictionary <string, object> userAttrs = ACPUserProfileHelpers.GetDictionaryFromHashMap(retrievedAttributes);
            string result = ACPUserProfileHelpers.JsonStringFromDictionary(userAttrs);

            redirectedDelegate(result);
        }