-
public final class TrackReferenceLocalKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static <ERROR CLASS>TrackReferenceLocal
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getTrackReferenceLocal()CompositionLocal for the TrackReference currently provided by TrackReferenceLocal final static UnitTrackReferenceScope(TrackReference trackRef, Function0<Unit> content)Binds trackRef to the TrackReferenceLocal for the scope of content. final static TrackReferencerequireTrack(TrackReference passedTrack)Returns the passedTrack or the currently provided TrackReferenceLocal. final static UnitForEachTrack(List<TrackReference> tracks, Function1<TrackReference, Unit> content)A simple way to loop over tracks that creates a TrackReferenceScope for each track and calls content. -
-
Method Detail
-
getTrackReferenceLocal
final <ERROR CLASS> getTrackReferenceLocal()
CompositionLocal for the TrackReference currently provided by TrackReferenceLocal
-
TrackReferenceScope
@Composable() final static Unit TrackReferenceScope(TrackReference trackRef, Function0<Unit> content)
Binds trackRef to the TrackReferenceLocal for the scope of content.
-
requireTrack
@Composable() final static TrackReference requireTrack(TrackReference passedTrack)
Returns the passedTrack or the currently provided TrackReferenceLocal.
-
ForEachTrack
@Composable() final static Unit ForEachTrack(List<TrackReference> tracks, Function1<TrackReference, Unit> content)
A simple way to loop over tracks that creates a TrackReferenceScope for each track and calls content.
-
-
-
-