Package-level declarations

Types

Link copied to clipboard

Various constants regarding default attachment limits.

Link copied to clipboard
fun interface ChannelNameFormatter

An interface that generates a name for the given channel.

Link copied to clipboard
data class ExpandableList<T>(items: List<T>, minimumVisibleItems: Int = items.size, val isCollapsed: Boolean = true) : List<T>

A read-only, immutable list wrapper that supports expandable and collapsible behavior.

Link copied to clipboard
data class GiphyInfo(val url: String, @Px val width: Int, @Px val height: Int)

Contains extra information about Giphy attachments.

Link copied to clipboard

Enum class that holds a value used to obtain Giphy images of different quality level.

Link copied to clipboard

Sets the way in which Giphy container sizing is determined.

Link copied to clipboard
Link copied to clipboard

Constants related to polls.

Link copied to clipboard
open class Utils

Properties

Link copied to clipboard

Default height used for Giphy Images if no width metadata is available.

Link copied to clipboard

Default width used for Giphy Images if no width metadata is available.

Functions

Link copied to clipboard
fun canBlockUser(blockUserEnabled: Boolean, currentUser: User?, message: Message): Boolean

Determines whether the user who sent the given message can be blocked.

Link copied to clipboard
fun canCopyMessage(copyTextEnabled: Boolean, message: Message): Boolean

Determines whether the given message can be copied to the clipboard.

Link copied to clipboard
fun canDeleteMessage(deleteMessageEnabled: Boolean, currentUser: User?, message: Message, ownCapabilities: Set<String>): Boolean

Determines whether the given message can be deleted.

Link copied to clipboard
fun canEditMessage(editMessageEnabled: Boolean, currentUser: User?, message: Message, ownCapabilities: Set<String>): Boolean

Determines whether the given message can be edited.

Link copied to clipboard
fun canFlagMessage(flagEnabled: Boolean, currentUser: User?, message: Message, ownCapabilities: Set<String>): Boolean

Determines whether the given message can be flagged.

Link copied to clipboard
fun canMarkAsUnread(markAsUnreadEnabled: Boolean, ownCapabilities: Set<String>): Boolean

Determines whether messages in the channel can be marked as unread.

Link copied to clipboard
fun canPinMessage(pinMessageEnabled: Boolean, message: Message, ownCapabilities: Set<String>): Boolean

Determines whether the given message can be pinned or unpinned.

Link copied to clipboard
fun canReplyToMessage(replyEnabled: Boolean, message: Message, ownCapabilities: Set<String>): Boolean

Determines whether a reply (quote) can be made to the given message.

Link copied to clipboard
fun canRetryMessage(retryMessageEnabled: Boolean, currentUser: User?, message: Message): Boolean

Determines whether the given message can be retried.

Link copied to clipboard
fun canThreadReplyToMessage(threadsEnabled: Boolean, isInThread: Boolean, message: Message, ownCapabilities: Set<String>): Boolean

Determines whether a thread reply can be made to the given message.

Link copied to clipboard

Creates an empty read-only ExpandableList instance.

Link copied to clipboard

Returns an object containing extra information about the Giphy image based on its type.

Link copied to clipboard

Returns if we need to check for the given permission or not.

Link copied to clipboard
fun Context.shareLocalFile(uri: Uri, mimeType: String? = null, text: String? = null)

Share a local file.