ChannelSettingsViewModelContract

Properties

Link copied to clipboard
abstract val channelState: StateFlow<UikitGroupChannel>

The StateFlow of the UikitGroupChannel.

Link copied to clipboard

The StateFlow of the SimpleSendbirdEventState for the leaveChannel request.

Link copied to clipboard
Link copied to clipboard

The StateFlow of the SimpleSendbirdEventState for the updateChannel request.

Functions

Link copied to clipboard
abstract fun leaveChannel()

Leaves the current channel. The result will be notified by leaveChannelEventState.

Link copied to clipboard

Notifies that the leaveChannel event has been processed to reset leaveChannelEventState to SendbirdEventState.Idle state.

Link copied to clipboard

Notifies that the updateChannel event has been processed to reset updateChannelEventState to SendbirdEventState.Idle state.

Link copied to clipboard
abstract fun setMyPushTriggerOption(option: GroupChannel.PushTriggerOption)

Sets the push trigger option for the current user.

Link copied to clipboard
abstract fun updateChannel(params: GroupChannelUpdateParams)

Updates the channel description with the given params.

Link copied to clipboard
abstract fun updateChannelCover(file: File)

Updates the channel cover image with the given file.

Link copied to clipboard
abstract fun updateChannelName(name: String)

Updates the channel name with the given name.