ChannelSettingsViewModel

open class ChannelSettingsViewModel : BaseViewModel

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
open fun authenticate(@NonNull handler: AuthenticateHandler)
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
open fun leaveChannel(@Nullable handler: OnCompleteHandler)
Leaves current channel.
Link copied to clipboard
protected open fun onCleared()
Link copied to clipboard
open fun shouldFinish(): LiveData<Boolean>
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
val channelUrl: String