public void SetConsentStatus(bool personal) { Consent consentInfo = Consent.getInstance(new Context()); var consentStatus = personal ? ConsentStatus.PERSONALIZED : ConsentStatus.NON_PERSONALIZED; consentInfo.setConsentStatus(consentStatus); Util.showToast($"set consent status as {consentStatus}"); }
public void checkConsentStatus() { Consent consentInfo = Consent.getInstance(new Context()); consentInfo.requestConsentUpdate(new MConsentUpdateListener()); }