public interface ConsentStatusChangeListener
Listener that is called any time the SDK detects the consent status has changed. This includes when consent requirements are first determined, if required status changes, if a partner is added, if prompt ID invalidation occurs, or if the prompt retry interval expires.
This may be called multiple times while the app is running if a change has been observed. These typically occur, but are not limited to, during an app launch or on the app coming to the foreground.
Check Tracker.isConsentRequired(), Tracker.isConsentGranted(), and Tracker.isConsentShouldPrompt() to determine the proper action to take on the change.
| Modifier and Type | Method and Description |
|---|---|
void |
onConsentStatusChange()
Consent status has changed.
|
void onConsentStatusChange()
Tracker.isConsentRequired(), Tracker.isConsentGranted(), and Tracker.isConsentShouldPrompt() to determine the proper action to take.