protected override void _pushEventLoginFinished(UserProfile userProfile, bool autoLogin, string payload) { 
			if (SoomlaProfile.IsProviderNativelyImplemented(userProfile.Provider)) return;
			AndroidJNI.PushLocalFrame(100);
			using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.ProfileEventHandler")) {
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "pushEventLoginFinished", userProfile.toJSONObject().print(), autoLogin, payload);
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
Ejemplo n.º 2
0
 protected override void _pushEventLoginFinished(UserProfile userProfile, string payload)
 {
     if (SoomlaProfile.IsProviderNativelyImplemented(userProfile.Provider))
     {
         return;
     }
     soomlaProfile_PushEventLoginFinished(userProfile.toJSONObject().print(), payload);
 }
 protected override void _removeUserProfile(UserProfile userProfile)
 {
     AndroidJNI.PushLocalFrame(100);
     using (AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
         ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "removeUserProfile",
                                          userProfile.toJSONObject().ToString());
     }
     AndroidJNI.PopLocalFrame(IntPtr.Zero);
 }
Ejemplo n.º 4
0
        protected virtual void _storeUserProfile(UserProfile userProfile, bool notify)
        {
#if UNITY_EDITOR
            string key = keyUserProfile(userProfile.Provider);
            string val = userProfile.toJSONObject().ToString();
            SoomlaUtils.LogDebug(TAG, "key/val:" + key + "/" + val);
            PlayerPrefs.SetString(key, val);

            if (notify)
            {
                ProfileEvents.OnUserProfileUpdated(userProfile);
            }
#endif
        }
Ejemplo n.º 5
0
		protected virtual void _storeUserProfile(UserProfile userProfile, bool notify) {
			#if UNITY_EDITOR
			string key = keyUserProfile(userProfile.Provider);
			string val = userProfile.toJSONObject().ToString();
			SoomlaUtils.LogDebug(TAG, "key/val:" + key + "/" + val);
			PlayerPrefs.SetString(key, val);

			if (notify) {
				ProfileEvents.OnUserProfileUpdated(userProfile);
			}
			#endif
		}
Ejemplo n.º 6
0
 protected override void _pushEventLoginFinished(UserProfile userProfile, bool autoLogin, string payload)
 {
     if (SoomlaProfile.IsProviderNativelyImplemented(userProfile.Provider))
     {
         return;
     }
     AndroidJNI.PushLocalFrame(100);
     using (AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.ProfileEventHandler")) {
         ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "pushEventLoginFinished", userProfile.toJSONObject().print(), autoLogin, payload);
     }
     AndroidJNI.PopLocalFrame(IntPtr.Zero);
 }
Ejemplo n.º 7
0
 protected override void _removeUserProfile(UserProfile userProfile)
 {
     soomlaProfile_RemoveUserProfile(userProfile.toJSONObject().ToString());
 }
Ejemplo n.º 8
0
 protected override void _storeUserProfile(UserProfile userProfile, bool notify)
 {
     soomlaProfile_SetStoredUserProfile(userProfile.toJSONObject().ToString(), notify);
 }
 protected override void _pushEventLoginFinished(UserProfile userProfile, bool autoLogin, string payload)
 {
     if (SoomlaProfile.IsProviderNativelyImplemented(userProfile.Provider)) return;
     soomlaProfile_PushEventLoginFinished(userProfile.toJSONObject().print(), autoLogin, payload);
 }
Ejemplo n.º 10
0
		protected override void _removeUserProfile(UserProfile userProfile) {
			soomlaProfile_RemoveUserProfile(userProfile.toJSONObject().ToString());
		}
Ejemplo n.º 11
0
		protected override void _storeUserProfile(UserProfile userProfile, bool notify) {
			soomlaProfile_SetStoredUserProfile(userProfile.toJSONObject().ToString(), notify);
		}
		protected override void _removeUserProfile(UserProfile userProfile) {
			AndroidJNI.PushLocalFrame(100);
			using(AndroidJavaClass jniSoomlaProfile = new AndroidJavaClass("com.soomla.profile.unity.UnitySoomlaProfile")) {
				ProfileJNIHandler.CallStaticVoid(jniSoomlaProfile, "removeUserProfile",
				                                 userProfile.toJSONObject().ToString());
			}
			AndroidJNI.PopLocalFrame(IntPtr.Zero);
		}
Ejemplo n.º 13
0
 public static void onLoginFinished(UserProfile userProfileJson, bool autoLogin, string payload) {
     SoomlaUtils.LogDebug("TAG", "Logged in as: " + userProfileJson.toJSONObject().print());
 }