Ejemplo n.º 1
0
        void onConsentReady(string spConsents)
        {
            CmpDebugUtil.Log("I've reached the C# onConsentReady with json string: " + spConsents);
            SpConsents consents = JsonUnwrapper.UnwrapSpConsentsAndroid(spConsents);

            _spConsents = consents;
            ConsentMessenger.Broadcast <IOnConsentReady>(consents);
        }
        void OnConsentReady(string message)
        {
            CmpDebugUtil.Log("OnConsentReady IOS_CALLBACK_RECEIVED: " + message);
            SpConsents spConsents = null;

            try
            {
                spConsents = JsonUnwrapper.UnwrapSpConsents(message);
            }
            catch (Exception ex)
            {
                Debug.LogError(
                    "Something went wrong while parsing the json data; null will be returned. \n Exception message: " +
                    ex.Message);
            }
            finally
            {
                _spConsents = spConsents;
                ConsentMessenger.Broadcast <IOnConsentReady>(spConsents);
            }
        }
Ejemplo n.º 3
0
 public void OnConsentReady(SpConsents spConsents)
 {
     Debug.Log($"The user interaction on consent messages is done. You can use the spConsent info; \n If it was the last from the series of consents, you can continue user's gaming experience!");
 }