简体   繁体   中英

How to get items count (size) when using PagingData<T> (Paging 3)?

With Paging 2 I can get size from PagedList . How can I do it with PagingData from Paging 3? There are no methods to get item count...

PagingData is just a stateless stream of incremental load events, so it does not hold this kind of state. Unfortunately Paging3 doesn't yet offer a non-ui collector that can build this state for you (most useful in testing), but this is hopefully something we can look into in the future.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM