public ConsentType GetConsent() { string resultStr = psdkGetConsent(); ConsentType result = ConsentType.UNKNOWN; if (resultStr != null) { result = PsdkUtils.StringToConsentType(resultStr); } return(result); }
public ConsentType GetConsent() { _consentMgrObject = GetUnityJavaObject(); ConsentType result = ConsentType.UNKNOWN; string consentStr = null; if (_consentMgrObject != null) { consentStr = _consentMgrObject.Call <string>("getConsentStr"); } if (consentStr != null) { result = PsdkUtils.StringToConsentType(consentStr); } return(result); }