add Data Use Consent
Restricts Chartboost's ability to collect personal data from the user.
This method can be called multiple times to set consent for different privacy standards. If consent has already been set for a privacy standard, adding a new consent object will overwrite the previous value.
It is recommended to call this method before starting the Chartboost SDK with startWithAppId. The added consents are persisted, so you only need to call this when the consent status needs to be updated.
For valid values, refer to: Chartboost Android Privacy Methods
Parameters
context
Application context.
data Use Consent
A data use consent object such as GDPR.