Support Home > SDK Integration > SDK – KochavaTracker Android > Interface – ConsentStatusChangeListener

Interface – ConsentStatusChangeListener

Interface

ConsentStatusChangeListener

 

public interface ConsentStatusChangeListener

Intelligent Consent Management Status Change Listener.

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.


Method Detail

Modifier and Type Method and Description
void onConsentStatusChange()
@MainThread
void onConsentStatusChange()

Consent status has changed. Check Tracker.isConsentRequired(), Tracker.isConsentGranted(), and Tracker.isConsentShouldPrompt() to determine the proper action to take.


See Also

Related Class Tracker.Configuration.setIntelligentConsentManagement
(boolean)

Tracker Configuration Set Intelligent Consent Management

Tracker.Configuration.setConsentStatusChangeListener
(ConsentStatusChangeListener)

Tracker Configuration Set Consent Status Change Listenter

 
 

Last Modified: May 1, 2018 at 4:44 pm