This method allows you to set your users' consent to collect data. You can call this method after the SDK initialization at every step where you request your users' consent.
Parameter | Type | Description | Required |
|---|---|---|---|
consented | Boolean | true = granted | Yes |
setGDPRConsent(consented: boolean) : Promise<void>await window.insider.setGDPRConsent(true);