MessageCollectionInitHandler

An interface used in MessageCollection.initialize.

Since

3.1.0

Functions

Link copied to clipboard
abstract fun onApiResult(apiResultList: List<BaseMessage>?, e: SendbirdException?)

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: List<BaseMessage>?, e: SendbirdException?)

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