MessageCollectionInitResultHandler

An interface used in MessageCollection.initialize.

Since

4.15.0

Functions

Link copied to clipboard
abstract fun onApiResult(apiResultList: SendbirdResult<List<BaseMessage>>)

This will give message lists loaded from the api. Once the results are received, you should handle the data in view according to the MessageCollectionInitPolicy.

Link copied to clipboard
abstract fun onCacheResult(cachedList: SendbirdResult<List<BaseMessage>>)

This will give message lists loaded from the db. If the db is empty, this will give an empty list.