public static void AddEventListener(DidomiEventListener eventListener) { eventListenerInner = eventListener; #if UNITY_IOS && !UNITY_EDITOR addEventListener(CallOnEventListenerDelegate); #endif }
private void RegisterEventHandlers() { DidomiEventListener eventListener = new DidomiEventListener(); eventListener.ConsentChanged += EventListener_ConsentChanged; eventListener.HideNotice += EventListener_HideNotice; eventListener.Ready += EventListener_Ready; eventListener.Error += EventListener_Error; eventListener.NoticeClickAgree += EventListener_NoticeClickAgree; eventListener.NoticeClickMoreInfo += EventListener_NoticeClickMoreInfo; eventListener.PreferencesClickAgreeToAll += EventListener_PreferencesClickAgreeToAll; eventListener.PreferencesClickDisagreeToAll += EventListener_PreferencesClickDisagreeToAll; eventListener.PreferencesClickPurposeAgree += EventListener_PreferencesClickPurposeAgree; eventListener.PreferencesClickPurposeDisagree += EventListener_PreferencesClickPurposeDisagree; eventListener.PreferencesClickSaveChoices += EventListener_PreferencesClickSaveChoices; eventListener.PreferencesClickVendorAgree += EventListener_PreferencesClickVendorAgree; eventListener.PreferencesClickVendorDisagree += EventListener_PreferencesClickVendorDisagree; eventListener.PreferencesClickVendorSaveChoices += EventListener_PreferencesClickVendorSaveChoices; eventListener.PreferencesClickViewVendors += EventListener_PreferencesClickViewVendors; eventListener.ShowNotice += EventListener_ShowNotice; eventListener.HidePreferences += EventListener_HidePreferences; eventListener.ShowPreferences += EventListener_ShowPreferences; Didomi.GetInstance().AddEventListener(eventListener); }
public void AddEventListener(DidomiEventListener eventListener) { var eventListenerProxy = new EventListenerProxy(eventListener); CallVoidMethod("addEventListener", eventListenerProxy); }
public EventListenerProxy(DidomiEventListener eventListener) : base("io.didomi.sdk.functionalinterfaces.DidomiEventListener") { _eventListener = eventListener; }
/// <summary> /// Add an event listener /// </summary> /// <param name="eventListener"></param> public void AddEventListener(DidomiEventListener eventListener) { didomiForPlatform.AddEventListener(eventListener); }
public void AddEventListener(DidomiEventListener eventListener) { throw new NotImplementedException(); }
public void AddEventListener(DidomiEventListener eventListener) { DidomiFramework.AddEventListener(eventListener); }