User Consent State
Represents user consent preferences for data collection and location services.
This data class enables programmatic management of user consent states for telemetry and geofencing features, allowing you to implement custom consent UI flows outside of the default attribution interface.
Telemetry and Privacy
Your users should be in charge of their own location data and when it is shared. By default, whenever your application causes the user's location to be gathered, it sends de-identified location and usage data to Mapbox. If you're developing a native app with one of the Mapbox mobile SDKs, our terms of service require that you provide a telemetry opt-out option within your app for all end users. The default attribution control includes an opt out button. If you hide the attribution control, you must provide an alternative opt out method your users can use. You are responsible for allowing your users to opt out of Mapbox Telemetry.
See guide for more info.
Types
Builder for UserConsentState.