Events
addEventListener
Name
Type
Description
import io.didomi.sdk.events.EventListener;
import io.didomi.sdk.events.ConsentChangedEvent;
Didomi.getInstance().addEventListener(new EventListener() {
@Override
public void consentChanged(ConsentChangedEvent event) {
// React to consent changed
}
@Override
public void showNotice(ShowNoticeEvent event) {
// React to notice being shown
}
});import io.didomi.sdk.events.EventListener
import io.didomi.sdk.events.ConsentChangedEvent
Didomi.getInstance().addEventListener(object : EventListener() {
override fun consentChanged(event: ConsentChangedEvent) {
// React to consent changed
}
override fun showNotice(event: ShowNoticeEvent) {
// React to notice being shown
}
})Event types
consentChanged
Example
error
Listener parameters
Name
Type
Description
Example
hideNotice
Example
showNotice
Example
noticeClickAgree
Example
noticeClickDisagree
Example
noticeClickMoreInfo
Example
noticeClickViewVendors
Example
noticeClickViewSPIPurposes
Example
noticeClickPrivacyPolicy
Example
hidePreferences
Example
showPreferences
Example
preferencesClickAgreeToAll
Example
preferencesClickDisagreeToAll
Example
preferencesClickSaveChoices
Example
preferencesClickPurposeAgree
Example
preferencesClickPurposeDisagree
Method
Type
Description
Example
preferencesClickCategoryAgree
Method
Type
Description
Example
preferencesClickCategoryDisagree
Method
Type
Description
Example
preferencesClickViewVendors
preferencesClickViewSPIPurposes
Example
preferencesClickVendorAgree
Method
Type
Description
Example
preferencesClickVendorDisagree
Method
Type
Description
Example
preferencesClickAgreeToAllVendors
Example
preferencesClickDisagreeToAllVendors
Example
preferencesClickVendorSaveChoices
Example
preferencesClickViewPurposes
Example
preferencesClickAgreeToAllPurposes
Example
preferencesClickDisagreeToAllPurposes
Example
preferencesClickSPIPurposeAgree
Example
preferencesClickSPIPurposeDisagree
Method
Type
Description
Example
preferencesClickSPICategoryAgree
Method
Type
Description
Example
preferencesClickSPICategoryDisagree
Method
Type
Description
Example
preferencesClickSPIPurposeSaveChoices
Example
syncUserChanged
Example
syncDone
Example
syncError
Example
syncReady
Property
Type
Description
languageUpdated
Example
languageUpdateFailed
Example
integrationError
Example
Last updated