LiveCollection / LiveCollectionStream. A live collection emits LiveResult<T>, which contains the current data list and an isFetching flag.
Platform Surface
Parameters
Observe A Live Object
Observe a live object when your Flutter UI needs one SDK object to stay current after server or local-cache changes.Observe A Live Collection
getStream() emits LiveResult<AmityPost>. Keep the collection instance so you can load more pages and dispose it later.
Notes
getStream()starts the first page load forLiveCollection.- Use
observeLoadingState()when you only need loading changes. - Call
loadNext()only whenhasNextPage()is true. - Call
reset()to clear the collection and reload the first page. - Cancel every
StreamSubscriptionand calldispose()on live collections that are no longer used.
Related Topics
Post Retrieval
See post-specific Flutter retrieval examples.
Flutter Push Notifications
Configure Flutter notification setup alongside real-time data.