Skip to content

Commit

Permalink
Implement intents in VicePortal (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
eygraber authored Mar 19, 2024
1 parent 6387793 commit 624b473
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ import com.eygraber.vice.ViceCompositor
import com.eygraber.vice.ViceContainer
import com.eygraber.vice.ViceEffects
import com.eygraber.vice.ViceView
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharedFlow

public abstract class VicePortal<K, V, I, C, E, S> : ComposePortal<K>, ViceContainer<V, I, C, E, S>
where V : ViceView<I, S>, C : ViceCompositor<I, S>, E : ViceEffects {
override val intents: SharedFlow<I> = MutableSharedFlow(extraBufferCapacity = 64)

@Composable
public final override fun Render() {
Vice()
Expand Down

0 comments on commit 624b473

Please sign in to comment.