Exemple #1
0
 //--------------------------------------
 // EVENTS Impl
 //--------------------------------------
 public static void addEventListener(string eventName, EventHandlerFunction handler)
 {
     if(controller == null) {
         return;
     }
     controller.addEventListener(eventName, handler);
 }
 //--------------------------------------
 // PUBLIC METHODS
 //--------------------------------------
 public void addEventListner(string eventName, EventHandlerFunction handler)
 {
     if(listners.ContainsKey(eventName)) {
         (listners[eventName] as ArrayList).Add(handler);
     } else {
         ArrayList handlers =  new ArrayList();
         handlers.Add(handler);
         listners.Add(eventName, handlers);
     }
 }
		private void addEventListener(int eventID, EventHandlerFunction handler, string eventGraphName) {

			if(listners.ContainsKey(eventID)) {
				listners[eventID].Add(handler);
			} else {
				List<EventHandlerFunction> handlers =  new  List<EventHandlerFunction>();
				handlers.Add(handler);
				listners.Add(eventID, handlers);
			}
		}
Exemple #4
0
 public static void removeEventListener(string eventName, EventHandlerFunction handler)
 {
     switch(Application.platform) {
     case RuntimePlatform.IPhonePlayer:
         IOSInstagramManager.instance.removeEventListener(eventName, handler);
         break;
     case RuntimePlatform.Android:
         AndroidInstagramManager.instance.removeEventListener(eventName, handler);
         break;
     }
 }
		public void removeEventListener(int eventID, EventHandlerFunction handler, string eventGraphName) {



			if(listners.ContainsKey(eventID)) {
				List<EventHandlerFunction> handlers =  listners[eventID];
				handlers.Remove(handler);

				if(handlers.Count == 0) {
					listners.Remove(eventID);
				}
			}
		}
 public void addEventListener(int eventID, EventHandlerFunction handler)
 {
     addEventListener(eventID, handler, eventID.ToString());
 }
 //--------------------------------------
 // ADD LISTENER'S
 //--------------------------------------
 public void addEventListener(string eventName, EventHandlerFunction handler)
 {
     addEventListener(eventName.GetHashCode(), handler, eventName);
 }
    public void removeEventListner(string eventName, EventHandlerFunction handler)
    {
        if(listners.ContainsKey(eventName)) {
            ArrayList handlers =  listners[eventName] as ArrayList;
            handlers.Remove(handler);

            if(handlers.Count == 0) {
                listners.Remove(eventName);
            }
        }
    }
Exemple #9
0
 public void addEventListener(int eventID, 	EventHandlerFunction handler)
 {
     _twitterGate.addEventListener(eventID, handler);
 }
Exemple #10
0
 public void addEventListener(string eventName, 	EventHandlerFunction handler)
 {
     _twitterGate.addEventListener(eventName, handler);
 }