-
public final class ParticipantActionDefines a participant action.
-
-
Constructor Summary
Constructors Constructor Description ParticipantAction(ImageVector icon, String label, Boolean firstToggleAction, Function2<Call, ParticipantState, Boolean> condition, Function3<CoroutineScope, Call, ParticipantState, Unit> action)
-
Method Summary
Modifier and Type Method Description final ImageVectorgetIcon()final StringgetLabel()final BooleangetFirstToggleAction()final Function2<Call, ParticipantState, Boolean>getCondition()final Function3<CoroutineScope, Call, ParticipantState, Unit>getAction()-
-
Constructor Detail
-
ParticipantAction
ParticipantAction(ImageVector icon, String label, Boolean firstToggleAction, Function2<Call, ParticipantState, Boolean> condition, Function3<CoroutineScope, Call, ParticipantState, Unit> 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.condition- the condition if the action is to be shown or not.action- the action (i.e.
-
-
Method Detail
-
getIcon
final ImageVector getIcon()
-
getFirstToggleAction
final Boolean getFirstToggleAction()
-
getCondition
final Function2<Call, ParticipantState, Boolean> getCondition()
-
-
-
-