Esempio n. 1
0
 internal static void TryFireProfileInitialized()
 {
     if (AllProvidersInitialized())
     {
         ProfileEvents.OnSoomlaProfileInitialized();
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes the SOOMLA Profile Module.
        ///
        /// NOTE: This function must be called before any of the class methods can be used.
        /// </summary>
        public static void Initialize()
        {
            instance._initialize(GetCustomParamsJson());             //add parameters
#if SOOMLA_FACEBOOK
            providers.Add(Provider.FACEBOOK, new FBSocialProvider());
#endif
#if SOOMLA_GOOGLE
            providers.Add(Provider.GOOGLE, new GPSocialProvider());
#endif
#if SOOMLA_TWITTER
            SoomlaUtils.LogDebug(TAG, "Adding TWITTER provider!!!!!");
            providers.Add(Provider.TWITTER, new TwitterSocialProvider());
#endif

#if UNITY_EDITOR
            ProfileEvents.OnSoomlaProfileInitialized();
#endif
        }
Esempio n. 3
0
 /// <summary>
 /// Handles an <c>onSoomlaProfileInitialized</c> event, which is fired when SoomlaProfile
 /// has been initialzed
 /// </summary>
 public void onSoomlaProfileInitialized()
 {
     SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onSoomlaProfileInitialized");
     ProfileEvents.OnSoomlaProfileInitialized();
 }