Live Objects are supported in the Android SDK with RxJava Data Streaming
Flowable Usage
Single Usage
Completable Usage
.asFlow()
method, it enables the conversion of Flowable<T> functions of the Amity Android SDK into Flow functions.
Flow<PagingData<T>>
source into your UI is made easy through the collectAsLazyPagingItems()
function. This function allows you to seamlessly paginate and display items within your Composable functions.
To start using it, add compose paging dependency in your project app level build.gradle file.
collectAsState()
method, it can deliver asynchronous data updates to your Compose UI components.
Resource Management
Thread Management
subscribeOn(Schedulers.io())
for background operations and observeOn(AndroidSchedulers.mainThread())
for UI updates.Error Handling
doOnError
for all RxJava streams to prevent crashes.Jetpack Compose Integration
collectAsState()
for single objects and collectAsLazyPagingItems()
for paginated collections in Compose.