get Data Use Consent
fun getDataUseConsent(context: <Error class: unknown class>, privacyStandard: String): DataUseConsent?
Retrieves stored data use consent. This method returns only the base class of the DataUseConsent, even if it was added as a specific class like GDPR or CCPA. Might return null if DataUseConsent is not found or was never stored.
Return
The stored DataUseConsent object, or null if not found.
Parameters
context
Application context.
privacy Standard
The privacy standard such as GDPR.GDPR_STANDARD or CCPA.CCPA_STANDARD or custom string.