/** Constructor **/ public SwipeToAction(RecyclerView recyclerView, ISwipeListener <M> swipeListener) { this._recyclerView = recyclerView; this._swipeListener = swipeListener; init(); }
public bool UnsubscribeSwipeListener(ISwipeListener swipe, int touchToMonitor) { if (!ListenerIndexValid(touchToMonitor)) { return(false); } return(swipeListeners[touchToMonitor].Remove(swipe)); }
public bool SubscribeSwipeListener(ISwipeListener swipe, int touchToMonitor) { if (!ListenerIndexValid(touchToMonitor)) { return(false); } swipeListeners[touchToMonitor].Add(swipe); return(true); }
public void RemoveSwipeListener(ISwipeListener listener) { if (_swipeListeners != null) _swipeListeners -= listener.OnSwipe; }
public void AddSwipeListener(ISwipeListener listener) { _swipeListeners += listener.OnSwipe; }
public void RegisterMovementListener(ISwipeListener swipeListener) { if (!swipeListeners.Contains(swipeListener)) { swipeListeners.Add(swipeListener); } }