getItemCount

open fun getItemCount(): Int(source)

Returns the number of items in the adapter bound to the parent RecyclerView.

Note that this number is not necessarily equal to State#getItemCount(). In methods where State is available, you should use State#getItemCount() instead. For more details, check the documentation for State#getItemCount().

Return

The number of items in the bound adapter

See also