Sets the user’s consent status and categories. Call this method from your consent management preferences screen in your app. This method automatically sets the user’s consent status to CONSENTED if any number of categories are set.
The following static constants are the complete list of supported consent categories:
Sets the user’s consent status. Call this method from your consent management preferences screen in your app when the user opts in or opts out of tracking. If true, automatically enables all categories. If false, all categories automatically disabled.
If the user’s status is set to CONSENTED using this method, the Consent Manager automatically subscribes the user to ALL available consent categories (subset of categories not allowed).
The CONSENTED status is set when the user has consented to tracking. In this status, the Consent Manager dequeues any previously-queued track calls and allow all subsequent tracking calls to continue as normal.
The NOT_CONSENTED status is set when the user has declined tracking. In this state, the Consent Manager purges any previously-queued track calls and drops all subsequent tracking calls from being further processed by the SDK.
Request to dispatch a batch queue of events when the batch limit has not been reached. If all other dispatching checks are okay (online, consent management, dispatch validators), the queue is dispatched.