示例#1
0
 public static void AddEventListener(DidomiEventListener eventListener)
 {
     eventListenerInner = eventListener;
     #if UNITY_IOS && !UNITY_EDITOR
     addEventListener(CallOnEventListenerDelegate);
     #endif
 }
示例#2
0
文件: DemoGUI.cs 项目: didomi/unity
    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);
    }
示例#3
0
        public void AddEventListener(DidomiEventListener eventListener)
        {
            var eventListenerProxy = new EventListenerProxy(eventListener);

            CallVoidMethod("addEventListener", eventListenerProxy);
        }
示例#4
0
 public EventListenerProxy(DidomiEventListener eventListener) : base("io.didomi.sdk.functionalinterfaces.DidomiEventListener")
 {
     _eventListener = eventListener;
 }
示例#5
0
文件: Didomi.cs 项目: didomi/unity
 /// <summary>
 /// Add an event listener
 /// </summary>
 /// <param name="eventListener"></param>
 public void AddEventListener(DidomiEventListener eventListener)
 {
     didomiForPlatform.AddEventListener(eventListener);
 }
示例#6
0
 public void AddEventListener(DidomiEventListener eventListener)
 {
     throw new NotImplementedException();
 }
示例#7
0
 public void AddEventListener(DidomiEventListener eventListener)
 {
     DidomiFramework.AddEventListener(eventListener);
 }