code: public void fling(final int position) {
          int firstVisiblePosition = mListViewWrapper.getFirstVisiblePosition();
          int lastVisiblePosition = mListViewWrapper.getLastVisiblePosition();
          if (position < firstVisiblePosition || position > lastVisiblePosition) {
              throw new IllegalArgumentException("View for position " + position + " not visible!");
          }
  
          View downView = AdapterViewUtil.getViewForPosition(mListViewWrapper, position);
          if (downView == null) {
              throw new IllegalStateException("No view found for position " + position);
          }
          flingView(downView, position, true);
  
          mActiveSwipeCount++;
          mVirtualListCount--;
      }
docs: Flings the {@link android.view.View} corresponding to given position out of sight.
  Calling this method has the same effect as manually swiping an item off the screen.
  
  @param position the position of the item in the {@link android.widget.ListAdapter}. Must be visible.