ParticipantAction
class ParticipantAction(val icon: ImageVector, val label: String, val firstToggleAction: Boolean = true, val condition: (Call, ParticipantState) -> Boolean = { _, _ -> true }, val action: CoroutineScope.(Call, ParticipantState) -> Unit = { _, _ -> })
Defines a participant action.
Parameters
icon
the icon that represents the action.
label
the text that represents the action.
firstToggleAction
a boolean noting if this action is first of two (i.e. Pin is first = true, where Unpin is first=false)
condition
the condition if the action is to be shown or not.
action
the action (i.e. callable)
Constructors
Link copied to clipboard
constructor(icon: ImageVector, label: String, firstToggleAction: Boolean = true, condition: (Call, ParticipantState) -> Boolean = { _, _ -> true }, action: CoroutineScope.(Call, ParticipantState) -> Unit = { _, _ -> })