code: public final void setItemChecked(final int position, final boolean checked) {
          if (choiceMode.setItemChecked(position, checked)) {
              notifyDataSetChanged();
  
              if (checked && itemSelectedListener != null) {
                  itemSelectedListener.onItemSelected(position);
              }
          }
      }
docs: Sets, whether the list item at a specific position should be selected, or not.
  
  @param position
  The position of the list item, whose selection state should be changed, as an {@link
  Integer} value
  @param checked
  True, if the list item should be selected, false otherwise