ChannelSettingsViewModel

ViewModel preparing and managing data related with the settings of a channel since 3.0.0

Constructors

Link copied to clipboard
open fun ChannelSettingsViewModel(@NonNull channelUrl: String)
Constructor

Functions

Link copied to clipboard
Tries to connect Sendbird Server and retrieve a channel instance.
Link copied to clipboard
open fun getChannelUpdated(): LiveData<GroupChannel>
Returns LiveData that can be observed if the channel has been updated.
Link copied to clipboard
Leaves current channel.
Link copied to clipboard
protected open fun onCleared()
Link copied to clipboard
Returns LiveData that can be observed if the Activity or Fragment should be finished.
Link copied to clipboard
open fun updateChannel(@NonNull params: GroupChannelUpdateParams, @Nullable handler: OnCompleteHandler)
Updates current channel.

Properties

Link copied to clipboard
open val channel: GroupChannel
Link copied to clipboard