Package-level declarations
Properties
Duration of the attachment in seconds.
Duration of the attachment in milliseconds.
Key identifying the duration of the attachment.
Key identifying the upload ID of the attachment.
Key identifying the waveform data of the attachment.
Retrieves the upload ID of the attachment.
Waveform data of the attachment.
Functions
Parses CID of channel to channelType and channelId.
Counts messages in which user is mentioned. The method relies on the Channel.messages list and doesn't do any API call. Therefore, the count might be not reliable as it relies on the local data.
Generates a string URL with Stream CDN image resizing query parameters added to it. Once this URL is called, Stream's CDN will generate a resized image which is accessible using the link returned by this function.
Returns the number of unread messages in the channel for the current user.
Returns a list of ChannelUserRead objects representing which ones have delivered the given message.
Enriches the message with the given newCid. Sets the Message.cid and the Message.replyTo cid to the newCid value.
Returns a list of members of the channel excluding the currently logged in user.
Unlike the getString method it delegates to, this method requires a non-null default value, and therefore guarantees to return a non-null String.
Returns StreamCdnOriginalImageDimensions if the image is hosted by Stream's CDN and is resizable, otherwise returns null.
Returns a list of users that are members of the channel excluding the currently logged in user.
Checks if the channel is an anonymous channel (without name).
Converts a string written in lower camel case to a getter method name. Ex: "camelCase" -> "getCamelCase".
Returns a list of ChannelUserRead objects representing which ones have read the given message.
Converts string written in snake case to String in camel case with the first symbol in lower case. For example string "created_at_some_time" is converted to "createdAtSomeTime".
Synchronizes the unread count of the channel with the read state of the current user.
Updates a message that whose request (Edition/Delete/Reaction update...) has failed.
Update the online state of a message.