예제 #1
0
 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
 }
예제 #2
0
        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
        }