Package-level declarations

Properties

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

Inherited properties

Link copied to clipboard

Returns the number of unread messages in the channel for the current user.

Link copied to clipboard

Duration of the attachment in seconds.

Link copied to clipboard

Duration of the attachment in milliseconds.

Link copied to clipboard
Link copied to clipboard

Waveform data of the attachment.

Inherited functions

Link copied to clipboard
fun <T> Flow<T>.asLiveData(): LiveData<T>

Creates a LiveData that has values collected from the original Flow.

Link copied to clipboard

Parses CID of channel to channelType and channelId.

Link copied to clipboard

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.

Link copied to clipboard
fun String.createResizedStreamCdnImageUrl(@FloatRange(from = 0.0, to = 1.0, fromInclusive = false) resizedWidthPercentage: Float, @FloatRange(from = 0.0, to = 1.0, fromInclusive = false) resizedHeightPercentage: Float, resizeMode: StreamCdnResizeImageMode? = null, cropMode: StreamCdnCropImageMode? = null): String

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.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Channel.getMembersExcludingCurrent(currentUser: User? = ChatClient.instance().getCurrentUser()): List<Member>

Returns a list of members of the channel excluding the currently logged in user.

Link copied to clipboard
inline fun SharedPreferences.getNonNullString(key: String, defaultValue: String): String

Unlike the getString method it delegates to, this method requires a non-null default value, and therefore guarantees to return a non-null String.

Link copied to clipboard

Returns StreamCdnOriginalImageDimensions if the image is hosted by Stream's CDN and is resizable, otherwise returns null.

Link copied to clipboard
fun Channel.getUsersExcludingCurrent(currentUser: User? = ChatClient.instance().getCurrentUser()): List<User>

Returns a list of users that are members of the channel excluding the currently logged in user.

Link copied to clipboard
Link copied to clipboard

Checks if the channel is archived or not for the current user.

Link copied to clipboard

Checks if Channel is muted for user.

Link copied to clipboard

Checks if the channel is pinned or not for the current user.

Link copied to clipboard

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".

Link copied to clipboard

Updates a message that whose request (Edition/Delete/Reaction update...) has failed.

Link copied to clipboard

Update the online state of a message.