Package-level declarations

Functions

Link copied to clipboard
suspend fun GroupChannelCollection.awaitLoadMore(): List<GroupChannel>

Loads next channel lists, depending on the GroupChannelListQueryOrder set in the current collection.

Link copied to clipboard
suspend fun <T : BaseChannel> BaseMessageCollection<T>.awaitLoadNext(): List<BaseMessage>

Loads next (latest direction) message lists.

Link copied to clipboard
suspend fun <T : BaseChannel> BaseMessageCollection<T>.awaitLoadPrevious(): List<BaseMessage>

Loads previous (oldest direction) message lists.

Link copied to clipboard
suspend fun <T : BaseChannel> BaseMessageCollection<T>.awaitRemoveAllFailedMessages()

Remove all failed messages of this BaseMessageCollection

Link copied to clipboard
suspend fun <T : BaseChannel> BaseMessageCollection<T>.awaitRemoveFailedMessages(failedMessages: List<BaseMessage>): List<String>

Remove specific failed messages of this BaseMessageCollection

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

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

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

Initializes this collection from BaseMessageCollection.startingPoint.

Link copied to clipboard
fun <T : BaseChannel> BaseMessageCollection<T>.initializeFlow(initPolicy: MessageCollectionInitPolicy = MessageCollectionInitPolicy.CACHE_AND_REPLACE_BY_API): Flow<MessageCollectionInitResult>

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

Link copied to clipboard
suspend fun GroupChannelCollection.loadMore(): List<GroupChannel>
fun GroupChannelCollection.loadMore(handler: ResultHandler<List<GroupChannel>>?)

Loads next channel lists, depending on the GroupChannelListQueryOrder set in the current collection.

Link copied to clipboard
suspend fun <T : BaseChannel> BaseMessageCollection<T>.loadNext(): List<BaseMessage>
fun <T : BaseChannel> BaseMessageCollection<T>.loadNext(handler: ResultHandler<List<BaseMessage>>)

Loads next (latest direction) message lists.

Link copied to clipboard
suspend fun <T : BaseChannel> BaseMessageCollection<T>.loadPrevious(): List<BaseMessage>
fun <T : BaseChannel> BaseMessageCollection<T>.loadPrevious(handler: ResultHandler<List<BaseMessage>>)

Loads previous (oldest direction) message lists.

Link copied to clipboard
suspend fun <T : BaseChannel> BaseMessageCollection<T>.removeAllFailedMessages()

Remove all failed messages of this BaseMessageCollection

Link copied to clipboard
suspend fun <T : BaseChannel> BaseMessageCollection<T>.removeFailedMessages(failedMessages: List<BaseMessage>): List<String>
fun <T : BaseChannel> BaseMessageCollection<T>.removeFailedMessages(failedMessages: List<BaseMessage>, handler: ResultHandler<List<String>>?)

Remove specific failed messages of this BaseMessageCollection