All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.pro.respawn.flowmvi.api.ActionProvider.kt Maven / Gradle / Ivy

Go to download

A Kotlin Multiplatform MVI library based on plugins that is simple, fast, powerful & flexible

There is a newer version: 3.0.0
Show newest version
package pro.respawn.flowmvi.api

import kotlinx.coroutines.flow.Flow

/**
 * An entity that can provide [MVIAction]s through the [actions] flow.
 * This flow may behave differently depending on [ActionShareBehavior] chosen.
 * This is mainly implemented by the [Store] and exposed through [Provdier] ([Store.subscribe])
 */
public interface ActionProvider {

    /**
     * A flow of [MVIAction]s to be handled by the [MVISubscriber],
     * usually resulting in one-shot events.
     * How actions are distributed depends on [ActionShareBehavior].
     */
    public val actions: Flow
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy