Exemple #1
0
 public void unregisterObserver(IInputObserver aObserver)
 {
     foreach (KeyValuePair <int, List <IInputObserver> > pair in observers)
     {
         unregisterObserver(pair.Key, aObserver);
     }
 }
Exemple #2
0
 public void RemoveTouchObserver(IInputObserver ob)
 {
     if (m_TouchObservers.Contains(ob))
     {
         m_TouchObservers.Remove(ob);
     }
 }
Exemple #3
0
 public void AddTouchObserver(IInputObserver ob)
 {
     if (!m_TouchObservers.Contains(ob))
     {
         m_TouchObservers.Add(ob);
     }
 }
        private void Init(RequestRepository requestRepo, ViewEventRepository viewEventRepo,
                          NonViewEventRepository nonViewEventRepo, Dao <ConfigEntity> configDao, EventNumberInSameSessionHelper eventNumberInSameSessionHelper)
        {
            var countlyUtils = new CountlyUtils(this);
            var requests     = new RequestCountlyHelper(Config, countlyUtils, requestRepo);

            Events             = new EventCountlyService(Config, requests, viewEventRepo, nonViewEventRepo, eventNumberInSameSessionHelper);
            OptionalParameters = new OptionalParametersCountlyService();
            Notifications      = new NotificationsCallbackService(Config);
            var notificationsService = new ProxyNotificationsService(Config, InternalStartCoroutine, Events);

            _push   = new PushCountlyService(Events, requests, notificationsService, Notifications);
            Session = new SessionCountlyService(Config, _push, requests, OptionalParameters, eventNumberInSameSessionHelper);

            Consents     = new ConsentCountlyService();
            CrashReports = new CrashReportsCountlyService(Config, requests);

            Device         = new DeviceIdCountlyService(Session, requests, Events, countlyUtils);
            Initialization = new InitializationCountlyService(Session);

            RemoteConfigs = new RemoteConfigCountlyService(Config, requests, countlyUtils, configDao);

            StarRating     = new StarRatingCountlyService(Events);
            UserDetails    = new UserDetailsCountlyService(requests, countlyUtils);
            Views          = new ViewCountlyService(Config, Events);
            _inputObserver = InputObserverResolver.Resolve();
        }
Exemple #5
0
 public void registerObserver(IInputObserver aObserver, int aPriority)
 {
     if (!observers.ContainsKey(aPriority))
     {
         observers.Add(aPriority, new List <IInputObserver>());
     }
     observers[aPriority].Add(aObserver);
 }
        public static IInputObserver Resolve()
        {
            IInputObserver observer = null;

#if !UNITY_EDITOR && UNITY_ANDROID || UNITY_IOS
            observer = new MobileInputObserver();
#else
            observer = new DefaultInputObserver();
#endif
            return(observer);
        }
Exemple #7
0
 private void OnBegin(Vector2 aPosition)
 {
     foreach (KeyValuePair <int, List <IInputObserver> > pair in observers)
     {
         for (int i = 0; i < pair.Value.Count; i++)
         {
             if (pair.Value[i].OnInputBegin(aPosition))
             {
                 currentObserver = pair.Value[i];
                 return;
             }
         }
     }
 }
Exemple #8
0
 private void Start()
 {
     Consents = new ConsentCountlyServiceWrapper();
     CrushReports = new CrushReportsCountlyServiceWrapper();
     Device = new DeviceIdCountlyServiceWrapper();
     Events = new EventCountlyServiceWrapper();
     Initialization = new InitializationCountlyServiceWrapper();
     OptionalParameters = new OptionalParametersCountlyServiceWrapper();
     RemoteConfigs = new RemoteConfigCountlyServiceWrapper();
     StarRating = new StarRatingCountlyServiceWrapper();
     UserDetails = new UserDetailsCountlyServiceWrapper();
     Views = new ViewCountlyServiceWrapper();
     _inputObserver = InputObserverResolver.Resolve();
 }
Exemple #9
0
 public void RegisterObserver(IInputObserver observer)
 {
     registeredObservers.Add (observer);
 }
Exemple #10
0
 private void Reset()
 {
     isClickStart    = false;
     isBlocked       = false;
     currentObserver = null;
 }
Exemple #11
0
 public void unregisterObserver(int aPriority, IInputObserver aObserver)
 {
     observers[aPriority].Remove(aObserver);
 }
Exemple #12
0
 public void RemoveObserver(IInputObserver observer)
 {
     _observers.Remove(observer);
 }
 public void Add(IInputObserver inputObserver)
 {
     inputObservers.Add(inputObserver);
 }
Exemple #14
0
 public void RegisterObserver(IInputObserver observer)
 {
     observers.Add(observer);
 }
Exemple #15
0
 public void UnregisterObserver(IInputObserver observer)
 {
     registeredObservers.Remove (observer);
 }
 public bool Remove(IInputObserver inputObserver)
 {
     return(inputObservers.Remove(inputObserver));
 }
Exemple #17
0
 public void AddObserver(IInputObserver observer)
 {
     _observers.Add(observer);
 }