-
public final class ChannelHeaderViewModel extends BaseMessageListHeaderViewModelViewModel class for com.getstream.sdk.chat.view.ChannelHeaderView. Responsible for updating channel information. Can be bound to the view using ChannelHeaderViewModel.bindView function.
-
-
Field Summary
Fields Modifier and Type Field Description private final LiveData<Message>activeThreadprivate final LiveData<Boolean>anyOtherUsersOnlineprivate final LiveData<Channel>channelStateprivate final LiveData<List<Member>>membersprivate final LiveData<ConnectionState>onlineprivate final LiveData<List<User>>typingUsers
-
Constructor Summary
Constructors Constructor Description ChannelHeaderViewModel(String cid, ChatDomain chatDomain)ChannelHeaderViewModel(String cid)
-
Method Summary
Modifier and Type Method Description final LiveData<Message>getActiveThread()final LiveData<Boolean>getAnyOtherUsersOnline()final LiveData<Channel>getChannelState()final LiveData<List<Member>>getMembers()final LiveData<ConnectionState>getOnline()final LiveData<List<User>>getTypingUsers()-
Methods inherited from class com.getstream.sdk.chat.viewmodel.BaseMessageListHeaderViewModel
clear, getTag, onCleared, setTagIfAbsent -
Methods inherited from class com.getstream.sdk.chat.viewmodel.ChannelHeaderViewModel
resetThread, setActiveThread -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ChannelHeaderViewModel
ChannelHeaderViewModel(String cid, ChatDomain chatDomain)
- Parameters:
cid- The full channel id, i.e.chatDomain- Entry point for all livedata & offline operations.
-
ChannelHeaderViewModel
ChannelHeaderViewModel(String cid)
- Parameters:
cid- The full channel id, i.e.
-
-
Method Detail
-
getActiveThread
final LiveData<Message> getActiveThread()
-
getAnyOtherUsersOnline
final LiveData<Boolean> getAnyOtherUsersOnline()
-
getChannelState
final LiveData<Channel> getChannelState()
-
getMembers
final LiveData<List<Member>> getMembers()
-
getTypingUsers
final LiveData<List<User>> getTypingUsers()
-
-
-
-