Channels

interface Channels

This module is used to manage channels.

Functions

acceptChannelInvitation
Link copied to clipboard
abstract fun acceptChannelInvitation(channelId: String?, listener: IChannelProxy.IChannelAcceptInvitationListener?)
Accept a channel invitation.
addUsersToChannel
Link copied to clipboard
abstract fun addUsersToChannel(channel: Channel, type: ChannelUser.ChannelUserType, contacts: ArrayList<IRainbowContact>, listener: IChannelProxy.IChannelUpdateUsersListener?)
Adds users to a @object:Channel as type.
abstract fun addUsersToChannel(channel: Channel, type: ChannelUser.ChannelUserType, contactsId: Array<String>, listener: IChannelProxy.IChannelUpdateUsersListener?)
Adds users to a @object:Channel as type.
createChannel
Link copied to clipboard
abstract fun createChannel(name: String, description: String?, mode: Channel.ChannelMode?, category: String?, autoProvisioning: Boolean, maxItems: Int, listener: IChannelProxy.IChannelCreateListener?)
Create a closed company channel.
createClosedChannel
Link copied to clipboard
abstract fun createClosedChannel(name: String, description: String?, category: String?, autoProvisioning: Boolean, maxItems: Int, listener: IChannelProxy.IChannelCreateListener?)
Create a closed company channel.
createItem
Link copied to clipboard
abstract fun createItem(channel: Channel?, channelItem: IChannelItem?, listener: IChannelProxy.IChannelCreateItemListener?)
Adds an @object:ChannelItem to a @object:Channel.
createPublicChannel
Link copied to clipboard
abstract fun createPublicChannel(name: String, description: String?, category: String?, maxItems: Int, listener: IChannelProxy.IChannelCreateListener?)
Create a public company channel.
declineChannelInvitation
Link copied to clipboard
abstract fun declineChannelInvitation(channelId: String?, listener: IChannelProxy.IChannelDeclineInvitationListener?)
Decline a channel invitation.
deleteAllUsersFromChannel
Link copied to clipboard
abstract fun deleteAllUsersFromChannel(channel: Channel, listener: IChannelProxy.IChannelUpdateUsersListener?)
Removes all users from a @object:Channel.
deleteChannel
Link copied to clipboard
abstract fun deleteChannel(channel: Channel?, listener: IChannelProxy.IChannelDeleteListener?)
Delete a channel.
deleteItem
Link copied to clipboard
abstract fun deleteItem(channelId: String?, itemId: String?, listener: IChannelProxy.IChannelDeleteItemListener?)
Deletes an @object:ChannelItem from a @object:Channel.
deleteUsersFromChannel
Link copied to clipboard
abstract fun deleteUsersFromChannel(channel: Channel, contacts: ArrayList<IRainbowContact>, listener: IChannelProxy.IChannelUpdateUsersListener?)
Removes users from a @object:Channel.
abstract fun deleteUsersFromChannel(channel: Channel, contactsId: Array<String>, listener: IChannelProxy.IChannelUpdateUsersListener?)
Removes users from a @object:Channel.
fetchChannelsByCategory
Link copied to clipboard
abstract fun fetchChannelsByCategory(category: String?, limit: Int, listener: IChannelProxy.IChannelFetchListener?)
Fetch channels by its category (from server).
abstract fun fetchChannelsByCategory(category: String?, excludedCategories: ArrayList<String>?, limit: Int, offset: Int, listener: IChannelProxy.IChannelFetchListener?)
Fetch channels by its category (from server).
fetchChannelsByDescription
Link copied to clipboard
abstract fun fetchChannelsByDescription(description: String?, listener: IChannelProxy.IChannelFetchListener?)
Fetch channels by its description (from server).
fetchChannelsByName
Link copied to clipboard
abstract fun fetchChannelsByName(name: String?, listener: IChannelProxy.IChannelFetchListener?)
Fetch channels by its name (from server).
fetchFilteredUsers
Link copied to clipboard
abstract fun fetchFilteredUsers(channel: Channel, filter: ChannelMgr.ChannelUserFilter, offset: Int, limit: Int, listener: IChannelProxy.IChannelFetchUsersListener?)
Fetch users of a channel with specified limit and filtered by ALL, PUBLISHER or INVITED (from server).
fetchItems
Link copied to clipboard
abstract fun fetchItems(channel: Channel, itemsCount: Int, listener: IChannelProxy.IChannelFetchItemsListener?)
Fetch items from a specific channel (from server).
fetchLatestItems
Link copied to clipboard
abstract fun fetchLatestItems(itemsCount: Int, listener: IChannelProxy.IChannelFetchLatestItemsListener?)
Fetch latest items from all subscribed channels (from server).
fetchMostFollowedChannels
Link copied to clipboard
abstract fun fetchMostFollowedChannels(limit: Int, listener: IChannelProxy.IChannelFetchListener?)
Fetch most followed channels (from server).
abstract fun fetchMostFollowedChannels(limit: Int, offset: Int, listener: IChannelProxy.IChannelFetchListener?)
Fetch most followed channels (from server).
fetchMostRecentChannels
Link copied to clipboard
abstract fun fetchMostRecentChannels(limit: Int, listener: IChannelProxy.IChannelFetchListener?)
Fetch most recent channels (from server).
abstract fun fetchMostRecentChannels(limit: Int, offset: Int, listener: IChannelProxy.IChannelFetchListener?)
Fetch most recent channels (from server).
fetchNextItems
Link copied to clipboard
abstract fun fetchNextItems(channel: Channel, itemsCount: Int, date: Date?, listener: IChannelProxy.IChannelFetchItemsListener?)
Fetch items from a specific channel (from server).
fetchNextLatestItems
Link copied to clipboard
abstract fun fetchNextLatestItems(itemsCount: Int, date: Date?, listener: IChannelProxy.IChannelFetchLatestItemsListener?)
Fetch the next latest items from all subscribed channels (from server).
fetchReactionsForChannelItem
Link copied to clipboard
abstract fun fetchReactionsForChannelItem(channelId: String?, channelItemId: String?, reactionType: ChannelItem.ReactionType?, nb: Int, offset: Int, listener: IChannelProxy.IFetchReactionsListener?)
Fetch reactions from a given channel item with specified limit and offset.
fetchUsers
Link copied to clipboard
abstract fun fetchUsers(channel: Channel, listener: IChannelProxy.IChannelFetchUsersListener?)
Fetch the next 100 users of a channel (from server).
abstract fun fetchUsers(channel: Channel, limit: Int, listener: IChannelProxy.IChannelFetchUsersListener?)
Fetch users of a channel with specified limit (from server).
abstract fun fetchUsers(channel: Channel?, offset: Int, limit: Int, listener: IChannelProxy.IChannelFetchUsersListener?)
Fetch users of a channel with specified limit (from server).
fetchUsersByName
Link copied to clipboard
abstract fun fetchUsersByName(channel: Channel, nameToSearch: String, listener: IChannelProxy.IChannelFetchUsersListener?)
Fetch users matching given names (from server).
getChannelById
Link copied to clipboard
abstract fun getChannelById(channelId: String): Channel?
Get a @object:Channel from its id (locally).
getChannelByName
Link copied to clipboard
abstract fun getChannelByName(channelName: String): Channel?
Get a @object:Channel by its name but only in the user channels (locally).
markAllItemsAsRead
Link copied to clipboard
abstract fun markAllItemsAsRead(channel: Channel)
Mark all message items of the channel as read.
muteChannel
Link copied to clipboard
abstract fun muteChannel(channel: Channel?, listener: IChannelProxy.IChannelMuteListener?)
Mute a @object:Channel (no PUSH notification will be received).
registerChangeListener
Link copied to clipboard
abstract fun registerChangeListener(changeListener: IItemListChangeListener?)
Register a listener for being notified about channels changes.
removeUserReactionForChannelItem
Link copied to clipboard
abstract fun removeUserReactionForChannelItem(channelId: String?, itemId: String?, listener: IChannelProxy.IUpdateUserReactionListener?)
Removes the user reaction of a channel item
subscribeToChannel
Link copied to clipboard
abstract fun subscribeToChannel(channel: Channel, listener: IChannelProxy.IChannelSubscribeListener?)
Subscribe to a channel.
unMuteChannel
Link copied to clipboard
abstract fun unMuteChannel(channel: Channel?, listener: IChannelProxy.IChannelUnMuteListener?)
UnMute a @object:Channel (PUSH notification will be received).
unregisterChangeListener
Link copied to clipboard
abstract fun unregisterChangeListener(changeListener: IItemListChangeListener?)
Unregister a listener for being notified about channels changes.
unsubscribeToChannel
Link copied to clipboard
abstract fun unsubscribeToChannel(channel: Channel, listener: IChannelProxy.IChannelUnsubscribeListener?)
Unsubscribe from a subscribed channel.
updateChannelDescription
Link copied to clipboard
abstract fun updateChannelDescription(channel: Channel?, description: String?, listener: IChannelProxy.IChannelUpdateListener?)
Update the description of a channel.
updateItem
Link copied to clipboard
abstract fun updateItem(channel: Channel, itemId: String?, channelItem: IChannelItem, listener: IChannelProxy.IChannelCreateItemListener?)
Updates an @object:ChannelItem in a @object:Channel.
updateUserReactionForChannelItem
Link copied to clipboard
abstract fun updateUserReactionForChannelItem(channelId: String?, itemId: String?, reactionType: ChannelItem.ReactionType?, listener: IChannelProxy.IUpdateUserReactionListener?)
Updates the user reaction of a channel item
updateUsersToChannel
Link copied to clipboard
abstract fun updateUsersToChannel(channel: Channel, type: ChannelUser.ChannelUserType, contacts: ArrayList<IRainbowContact>, listener: IChannelProxy.IChannelUpdateUsersListener?)
Updates users to a @object:Channel as type.
abstract fun updateUsersToChannel(channel: Channel, type: ChannelUser.ChannelUserType, contactsId: Array<String>, listener: IChannelProxy.IChannelUpdateUsersListener?)
Updates users to a @object:Channel as type.
uploadChannelAvatar
Link copied to clipboard
abstract fun uploadChannelAvatar(channelId: String?, feedAvatar: File?, listener: IAvatarProxy.IAvatarListener?)
Upload channel avatar.

Properties

allChannels
Link copied to clipboard
abstract val allChannels: ArrayItemList<Channel>
Get all channels (user and others).
allOwnedChannels
Link copied to clipboard
abstract val allOwnedChannels: List<Channel>
Get all user's owned channels (locally).
allPendingChannels
Link copied to clipboard
abstract val allPendingChannels: List<Channel>
Get all pending channels (locally).
allSubscribedChannels
Link copied to clipboard
abstract val allSubscribedChannels: List<Channel>
Get all user's subscribed channels (locally).
allUserChannels
Link copied to clipboard
abstract val allUserChannels: List<Channel>
Get all user's channels (locally).
tenMostFollowedChannels
Link copied to clipboard
abstract val tenMostFollowedChannels: List<Channel>
Get ten most followed channels (locally).
tenMostRecentChannels
Link copied to clipboard
abstract val tenMostRecentChannels: List<Channel>
Get ten most recent channels (locally).