コード例 #1
0
        /** Constructor **/

        public SwipeToAction(RecyclerView recyclerView, ISwipeListener <M> swipeListener)
        {
            this._recyclerView  = recyclerView;
            this._swipeListener = swipeListener;

            init();
        }
コード例 #2
0
 public bool UnsubscribeSwipeListener(ISwipeListener swipe, int touchToMonitor)
 {
     if (!ListenerIndexValid(touchToMonitor))
     {
         return(false);
     }
     return(swipeListeners[touchToMonitor].Remove(swipe));
 }
コード例 #3
0
 public bool SubscribeSwipeListener(ISwipeListener swipe, int touchToMonitor)
 {
     if (!ListenerIndexValid(touchToMonitor))
     {
         return(false);
     }
     swipeListeners[touchToMonitor].Add(swipe);
     return(true);
 }
コード例 #4
0
 public void RemoveSwipeListener(ISwipeListener listener)
 {
     if (_swipeListeners != null)
         _swipeListeners -= listener.OnSwipe;
 }
コード例 #5
0
 public void AddSwipeListener(ISwipeListener listener)
 {
     _swipeListeners += listener.OnSwipe;
 }
コード例 #6
0
 public void RegisterMovementListener(ISwipeListener swipeListener)
 {
     if (!swipeListeners.Contains(swipeListener))
     {
         swipeListeners.Add(swipeListener);
     }
 }