Ejemplo n.º 1
0
 public bool SetupConsent()
 {
     registerInternalService(_consent = GetConsentService());
     if (_consent != null)
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
        public PsdkConsent(IPsdkServiceManager sm)
        {
            switch (Application.platform)
            {
            case RuntimePlatform.IPhonePlayer:      _impl = new IphonePsdkConsent(); break;

                                #if UNITY_ANDROID
            case RuntimePlatform.Android:           _impl = new AndroidPsdkConsent(sm.GetImplementation()); break;
                                #endif
            case RuntimePlatform.WindowsEditor:
            case RuntimePlatform.OSXEditor:         _impl = new UnityPsdkConsent(); break;

            default:
                throw new System.Exception("Platform not supported for PsdkConsent.");
            }
        }
Ejemplo n.º 3
0
        public IPsdkConsent GetConsentService()
        {
            if (!isPsdkValid())
            {
                return(null);
            }
            if (_consent != null)
            {
                return(_consent);
            }
            _consent = GettingServiceByReflection <IPsdkConsent> ("PsdkConsent");
            if (_consent != null)
            {
                return(_consent);
            }
            if (!_silent)
            {
                Debug.Log("Could not initiate PsdkAudience !");
            }

            return(null);
        }