コード例 #1
0
        public bool Setup(string configJson, string language = null)
        {
            JavaClass.CallStatic("setUnitySyncDelegate", new UnitySyncDelegate());


            AndroidJavaObject startupDelegate =
                new AndroidJavaObject("com.tabtale.publishingsdk.unity.UnityStartupDelegate");

            if (startupDelegate == null)
            {
                Debug.LogError("AndroidPsdkServiceManager::Setup NULL Startup delegate ");
                return(false);
            }

            _serviceManagerJavaObject = JavaClass.CallStatic <AndroidJavaObject>("unityStart", configJson, PsdkUtils.CurrentActivity, language, startupDelegate);

            if (null != _serviceManagerJavaObject)
            {
                return(true);
            }

            Debug.LogError("AndroidPsdkServiceManager::Setup NULL PSDK Service Manager ");
            return(false);
        }