Companion

public class Companion

Properties

Link copied to clipboard
public final static BaseChannel.Companion INSTANCE

Functions

Link copied to clipboard

Create Channel list pagination query object.

Link copied to clipboard

val query = BaseChannel.createLocalMessagesByTimeQuery(params)

Link copied to clipboard

messageType = MessageType.TEXT

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

query.loadNextPage { messages, error ->

Link copied to clipboard

val params = UnreadMentionMeChannelsParams(* channelTypes = listOf(ChannelType.GROUP, ChannelType.COMMUNITY)

Link copied to clipboard
public final Unit deleteChannels(List<ChannelIdentifier> identifiers, OperationHandler<Boolean> handler)

)

Link copied to clipboard
public final Unit getChannels(List<ChannelIdentifier> identifiers, OperationHandler<List<BaseChannel>> handler)

Usage Example:

Link copied to clipboard

BaseChannel.getChannelsUnreadCountByNoDisturbLevel(params) { count, error -> if (error == null && count!= null) {

Link copied to clipboard
public final Unit getMediaDownloadInfo(String url, OperationHandler<DownloadInfo> handler)

Usage Example: }

Link copied to clipboard

if (error == null && message!= null) {

Link copied to clipboard
public final Unit getPinnedChannels(List<ChannelType> channelTypes, OperationHandler<List<BaseChannel>> handler)

BaseChannel.getPinnedChannels(* listOf(ChannelType.DIRECT, ChannelType.GROUP)

Link copied to clipboard
public final Unit getTotalUnreadCount(OperationHandler<Integer> handler)

println("total Unread: $count")

Link copied to clipboard
public final Unit getUnreadChannels(List<ChannelType> channelTypes, OperationHandler<List<BaseChannel>> handler)

System (ChannelType.SYSTEM) three types Channel type, Not supported chatroom and community (ultra group).

Link copied to clipboard
public final Unit getUnreadCount(List<ChannelType> channelTypes, Boolean containBlocked, OperationHandler<Integer> handler)

BaseChannel.getUnreadCount(* listOf(ChannelType.DIRECT, ChannelType.GROUP)

Link copied to clipboard
public final Unit insertMessages(List<Message> messages, OperationHandler<Boolean> handler)

// Batch inserted successfully

Link copied to clipboard

channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP)

Link copied to clipboard
public final Unit syncRemoteChannels(ErrorHandler handler)

// Sync succeeded