public IPsdkAnalytics GetAnalyticsService() { if (!_psdkSetup) { return(null); } if (null != _analyticsService) { return(_analyticsService); } _analyticsService = GettingServiceByReflection <IPsdkAnalytics>("PsdkAnalyticsService"); if (null != _analyticsService) { return(_analyticsService); } if (!_silent) { Debug.Log("Please import PSDKAnalytics.unitypackage to use Analytics services !"); } return(null); }
public PsdkAnalyticsService(IPsdkServiceManager sm) { switch (Application.platform) { case RuntimePlatform.IPhonePlayer: _impl = new IphonePsdkAnalytics(sm.GetImplementation()); break; #if UNITY_ANDROID case RuntimePlatform.Android: _impl = new AndroidPsdkAnalytics(sm.GetImplementation()); break; #endif case RuntimePlatform.WindowsEditor: case RuntimePlatform.OSXEditor: _impl = new UnityEditorPsdkAnalytics(sm.GetImplementation()); break; default: throw new System.Exception("Platform not supported for Analytics."); } // #if UNITY_EDITOR // _impl = new UnityEditorPsdkSplash(sm.GetImplementation()); // #elif UNITY_ANDROID // _impl = new AndroidPsdkSplash(sm.GetImplementation()); // #elif UNITY_IPHONE // _impl = new IphonePsdkSplash(sm.GetImplementation()); // #else // throw new Exception("Platform not supported for Splash."); // #endif }
public bool SetupAnalyticsService() { registerInternalService(_analyticsService = GetAnalyticsService()); if (null != _analyticsService) { return(true); } return(false); }