-
public final class ChannelHeaderViewModel extends ViewModel
ViewModel class for com.getstream.sdk.chat.view.ChannelHeaderView. Responsible for updating channel information. Can be bound to the view using ChannelHeaderViewModel.bindView function.
-
-
Constructor Summary
Constructors Constructor Description ChannelHeaderViewModel(String cid, ChatDomain chatDomain)
-
Method Summary
Modifier and Type Method Description final LiveData<List<Member>>getMembers()final LiveData<Channel>getChannelState()final LiveData<Boolean>getAnyOtherUsersOnline()final LiveData<Boolean>getOnline()-
Methods inherited from class androidx.lifecycle.ViewModel
equals, hashCode, toString -
Methods inherited from class com.getstream.sdk.chat.viewmodel.ChannelHeaderViewModel
clear, getTag, onCleared, setTagIfAbsent -
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
-
-
Method Detail
-
getMembers
final LiveData<List<Member>> getMembers()
-
getChannelState
final LiveData<Channel> getChannelState()
-
getAnyOtherUsersOnline
final LiveData<Boolean> getAnyOtherUsersOnline()
-
-
-
-