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.
Matches the default Stream CDN hosts (imgix and stream-io-cdn). Shared with AttachmentHelper so the two can't drift. Anchored on the host only — resizing of custom/proxied Stream CDN domains is opted into via the cdnHost parameter of createResizedStreamCdnImageUrl, mirroring iOS' StreamCDNRequester(cdnHost:).
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.
Generates a URL with Stream CDN resizing parameters that cap the image to maxImagePixels total pixels (width × height), preserving aspect ratio and never upscaling. Mirrors the iOS SDK's imageAttachmentMaxPixels. Only affects images served from a Stream CDN host (see cdnHost) that carry original width (ow) and height (oh) params; any other URL, or one already at/under the budget, is returned unchanged.
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).
Returns whether this URL is served from a Stream CDN host that understands resizing query parameters.
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.