예제 #1
0
 /// <summary>
 /// Add an event listener for the given event filter.
 /// </summary>
 /// <param name="filter">Event filter</param>
 /// <returns>Listener ID</returns>
 public long AddListener(EventFilter filter)
 {
     return(AddListener(new EventFilter[] { filter }));
 }
예제 #2
0
            /*
             * Add an event listener for events of the given type.
             * @param eventType Event type, one of the constants EventBusC.EVENT_TYPE* or an application defined event type.
             * @return this object
             * @throws RemoteException
             * @see EventBusC
             */

            /// <summary>
            /// Add an event listener for events of the given type.
            /// </summary>
            /// <param name="eventType">Event type, one of the constants EventBusC.EVENT_TYPE* or an application defined event type.</param>
            /// <returns>Listener ID</returns>
            public long AddListener(long eventType)
            {
                EventFilter[] filters = new EventFilter[] { new EventFilter() };
                filters[0].type = eventType;
                return(AddListener(filters));
            }