initialize

fun <T : BaseChannel> BaseMessageCollection<T>.initialize(initPolicy: MessageCollectionInitPolicy = MessageCollectionInitPolicy.CACHE_AND_REPLACE_BY_API, handler: MessageCollectionInitResultHandler?)

Initializes this collection from BaseMessageCollection.startingPoint.

Since

4.15.0

Parameters

initPolicy

MessageCollectionInitPolicy used in how to deal with cache results and api results. Default is MessageCollectionInitPolicy.CACHE_AND_REPLACE_BY_API.

handler

MessageCollectionInitResultHandler used in providing the cache results and api results.


fun <T : BaseChannel> BaseMessageCollection<T>.initialize(initPolicy: MessageCollectionInitPolicy = MessageCollectionInitPolicy.CACHE_AND_REPLACE_BY_API): Flow<MessageCollectionInitResult>

Deprecated

As of 4.17.0, replaced with initializeFlow(initPolicy).

Replace with

initializeFlow(initPolicy)

Initializes this collection from BaseMessageCollection.startingPoint. MessageCollectionInitResult.CachedResult should not be called if it is an error.

Return

The Flow of MessageCollectionInitResult.

Since

4.15.0

Parameters

initPolicy

MessageCollectionInitPolicy used in how to deal with cache results and api results. Default is MessageCollectionInitPolicy.CACHE_AND_REPLACE_BY_API.