This method allows you to set the user's consent status for collecting IP information. 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 |
enableIpCollection(consented: boolean) : Promise<void>await window.insider.enableIpCollection(true);