Exemple #1
0
        ConsentWrapperAndroid()
        {
#if UNITY_ANDROID
            if (Application.platform == RuntimePlatform.Android)
            {
                activity = AndroidJavaConstruct.GetActivity();
                CmpDebugUtil.Log("Activity is OK");
                spClient = new SpClientProxy();
                CmpDebugUtil.Log("spClient is OK");
                this.constructor = new AndroidJavaConstruct();
                CmpDebugUtil.Log("AndroidJavaConstruct obj is OK");
            }
#endif
        }
        internal AndroidJavaObject ConsrtuctLib(AndroidJavaObject spConfig, AndroidJavaObject activity, SpClientProxy spClient)
        {
            AndroidJavaObject lib = pluginFactoryClass.CallStatic <AndroidJavaObject>("makeConsentLib", spConfig, activity, spClient);

            CmpDebugUtil.Log("consentLib is OK");
            return(lib);
        }