-
public final class ParticipantLocalKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static <ERROR CLASS>ParticipantLocal
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getParticipantLocal()CompositionLocal for the Participant currently provided by ParticipantScopeNot to be confused with LocalParticipant. final static UnitParticipantScope(Participant participant, Function0<Unit> content)Wraps content with a CompositionLocalProvider that binds participant to ParticipantLocal. final static ParticipantrequireParticipant(Participant passedParticipant)Returns the passedParticipant or the currently provided ParticipantLocal. final static UnitForEachParticipant(List<Participant> participants, Function1<Participant, Unit> content)A simple way to loop over participants that creates a ParticipantScope for each participant and calls content. -
-
Method Detail
-
getParticipantLocal
final <ERROR CLASS> getParticipantLocal()
CompositionLocal for the Participant currently provided by ParticipantScope
Not to be confused with LocalParticipant.
-
ParticipantScope
@Composable() final static Unit ParticipantScope(Participant participant, Function0<Unit> content)
Wraps content with a CompositionLocalProvider that binds participant to ParticipantLocal.
-
requireParticipant
@Composable() final static Participant requireParticipant(Participant passedParticipant)
Returns the passedParticipant or the currently provided ParticipantLocal.
-
ForEachParticipant
@Composable() final static Unit ForEachParticipant(List<Participant> participants, Function1<Participant, Unit> content)
A simple way to loop over participants that creates a ParticipantScope for each participant and calls content.
-
-
-
-