ChannelInfoScreenModal

open fun ChannelInfoScreenModal(modal: ChannelInfoViewEvent.Modal?, isGroupChannel: Boolean, onViewAction: (action: ChannelInfoViewAction) -> Unit, onMemberViewEvent: (event: ChannelInfoMemberViewEvent) -> Unit, onDismiss: () -> Unit)

Factory method for creating the channel info screen modal.

Parameters

modal

Which modal to display.

isGroupChannel

Whether the channel is a group channel.

onViewAction

Callback invoked when a view action is triggered. Applicable for all modals except ChannelInfoViewEvent.MemberInfoModal.

onMemberViewEvent

Callback invoked when a member view event is triggered. Only applicable for ChannelInfoViewEvent.MemberInfoModal.