-
public interface MessageCollectionInitHandler
An interface used in initialize.
-
-
Method Summary
Modifier and Type Method Description abstract void
onCacheResult(@Nullable() List<BaseMessage> cachedList, @Nullable() SendBirdException e)
This will give message lists loaded from the db.If the db is empty, this will give an empty list. abstract void
onApiResult(@Nullable() List<BaseMessage> apiResultList, @Nullable() SendBirdException e)
This will give message lists loaded from the api. -
-
Method Detail
-
onCacheResult
abstract void onCacheResult(@Nullable() List<BaseMessage> cachedList, @Nullable() SendBirdException e)
This will give message lists loaded from the db.If the db is empty, this will give an empty list.
- Parameters:
cachedList
- the list of BaseMessage loaded from the db.e
- SendBirdException in case an error occurred.
-
onApiResult
abstract void onApiResult(@Nullable() List<BaseMessage> apiResultList, @Nullable() SendBirdException e)
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.
- Parameters:
apiResultList
- the list of BaseMessage loaded from the api.e
- SendBirdException in case an error occurred.
-
-
-
-