public bool SetupConsent() { registerInternalService(_consent = GetConsentService()); if (_consent != null) { return(true); } return(false); }
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."); } }
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); }