简体   繁体   English

在没有 Flow 的情况下使用 Jetpack Compose Paging 库

[英]Using Jetpack Compose Paging library without Flow

I'd like to use Compose Paging library without Kotlin Flow but I' ve found only one example with Flow, where I have to collect data with collectAsLazyPagingItems() extension function.我想在没有 Kotlin Flow 的情况下使用 Compose Paging 库,但我发现只有一个带有 Flow 的示例,我必须使用 collectAsLazyPagingItems() 扩展 function 收集数据。 How to achieve identical behavior without flow?如何在没有流量的情况下实现相同的行为?

Whole paging is based on flow, this is just the official api.整个分页是基于流量的,这只是官方的api。 Is there any particular reason why you don't want to use flow?你有什么特别的原因不想使用流量吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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