library / io.getstream.chat.android.livedata.utils

Package io.getstream.chat.android.livedata.utils

Types

Call2

interface Call2<T>

CallImpl2

class CallImpl2<T> : Call2<T>

ChannelUnreadCountLiveData

class ChannelUnreadCountLiveData : LiveData<Int>

DefaultRetryPolicy

class DefaultRetryPolicy : RetryPolicy

Event

Used as a wrapper for data that is exposed via a LiveData that represents an event.

open class Event<out T>

EventObserver

An Observer for Events, simplifying the pattern of checking if the Event's content has already been handled.

class EventObserver<T> : Observer<Event<T>>

RetryPolicy

When creating a channel, adding a reaction or sending any temporary error will trigger the retry policy The retry policy interface exposes 2 methods

interface RetryPolicy

Functions

computeUnreadCount

fun computeUnreadCount(currentUser: User, read: ChannelUserRead?, messages: List<Message>?): Int?

validateCid

Validates a cid. Verifies it's not empty and in the format messaging:123

fun validateCid(cid: String): Unit