コード例 #1
0
        public void onFailedToUpdateConsentInfo(ConsentManagerException error)
        {
            Debug.Log($"onFailedToUpdateConsentInfo");

            if (error == null)
            {
                return;
            }
            Debug.Log($"onFailedToUpdateConsentInfo Reason: {error.getReason()}");

            switch (error.getCode())
            {
            case 0:
                Debug.Log("onFailedToUpdateConsentInfo - UNKNOWN");
                break;

            case 1:
                Debug.Log(
                    "onFailedToUpdateConsentInfo - INTERNAL - Error on SDK side. Includes JS-bridge or encoding/decoding errors");
                break;

            case 2:
                Debug.Log("onFailedToUpdateConsentInfo - NETWORKING - HTTP errors, parse request/response ");
                break;

            case 3:
                Debug.Log("onFailedToUpdateConsentInfo - INCONSISTENT - Incorrect SDK API usage");
                break;
            }
        }
コード例 #2
0
        private void onConsentFormError(UnityEngine.AndroidJavaObject exception)
        {
            var consentManagerException = new ConsentManagerException(new AndroidConsentManagerException(exception));

            listener.onConsentFormError(consentManagerException);
        }
コード例 #3
0
 public void onConsentFormError(ConsentManagerException exception)
 {
     Debug.Log($"ConsentFormListener - onConsentFormError, reason - {exception.getReason()}");
 }