public void consentChanged(AndroidJavaObject @event) { var consentChangedEvent = ConvertToConsentChangedEvent(@event); _eventListener.OnConsentChanged(consentChangedEvent); // The consent status of the user has changed }
static void CallOnEventListenerDelegate(int eventType, string argument) { DDMEventType eventTypeEnum = (DDMEventType)eventType; switch (eventTypeEnum) { case DDMEventType.DDMEventTypeConsentChanged: eventListenerInner.OnConsentChanged(new ConsentChangedEvent()); break; case DDMEventType.DDMEventTypeHideNotice: eventListenerInner.OnHideNotice(new HideNoticeEvent()); break; case DDMEventType.DDMEventTypeReady: eventListenerInner.OnReady(new ReadyEvent()); break; case DDMEventType.DDMEventTypeError: eventListenerInner.OnError(new ErrorEvent(argument)); break; case DDMEventType.DDMEventTypeShowNotice: eventListenerInner.OnShowNotice(new ShowNoticeEvent()); break; case DDMEventType.DDMEventTypeNoticeClickAgree: eventListenerInner.OnNoticeClickAgree(new NoticeClickAgreeEvent()); break; case DDMEventType.DDMEventTypeNoticeClickDisagree: eventListenerInner.OnNoticeClickDisagree(new NoticeClickDisagreeEvent()); break; case DDMEventType.DDMEventTypeNoticeClickMoreInfo: eventListenerInner.OnConsentChanged(new ConsentChangedEvent()); break; case DDMEventType.DDMEventTypePreferencesClickAgreeToAll: eventListenerInner.OnPreferencesClickAgreeToAll(new PreferencesClickAgreeToAllEvent()); break; case DDMEventType.DDMEventTypePreferencesClickDisagreeToAll: eventListenerInner.OnPreferencesClickDisagreeToAll(new PreferencesClickDisagreeToAllEvent()); break; case DDMEventType.DDMEventTypePreferencesClickPurposeAgree: eventListenerInner.OnPreferencesClickPurposeAgree(new PreferencesClickPurposeAgreeEvent(argument)); break; case DDMEventType.DDMEventTypePreferencesClickPurposeDisagree: eventListenerInner.OnPreferencesClickPurposeDisagree(new PreferencesClickPurposeDisagreeEvent(argument)); break; case DDMEventType.DDMEventTypePreferencesClickViewVendors: eventListenerInner.OnPreferencesClickViewVendors(new PreferencesClickViewVendorsEvent()); break; case DDMEventType.DDMEventTypePreferencesClickSaveChoices: eventListenerInner.OnPreferencesClickSaveChoices(new PreferencesClickSaveChoicesEvent()); break; case DDMEventType.DDMEventTypePreferencesClickVendorAgree: eventListenerInner.OnPreferencesClickVendorAgree(new PreferencesClickVendorAgreeEvent(argument)); break; case DDMEventType.DDMEventTypePreferencesClickVendorDisagree: eventListenerInner.OnPreferencesClickVendorDisagree(new PreferencesClickVendorDisagreeEvent(argument)); break; case DDMEventType.DDMEventTypePreferencesClickVendorSaveChoices: eventListenerInner.OnPreferencesClickVendorSaveChoices(new PreferencesClickVendorSaveChoicesEvent()); break; case DDMEventType.DDMEventTypeHidePreferences: eventListenerInner.OnHidePreferences(new HidePreferencesEvent()); break; case DDMEventType.DDMEventTypeShowPreferences: eventListenerInner.OnShowPreferences(new ShowPreferencesEvent()); break; default: break; } }