Package-level declarations

Types

Link copied to clipboard
typealias Decorate<S, I, A> = suspend PipelineContext<S, I, A>.(child: StorePlugin<S, I, A>) -> Unit
Link copied to clipboard
typealias DecorateArg<S, I, A, V> = suspend PipelineContext<S, I, A>.(child: StorePlugin<S, I, A>, it: V) -> Unit
Link copied to clipboard
typealias DecorateShutdown<S, I, A, V> = ShutdownContext<S, I, A>.(child: StorePlugin<S, I, A>, e: V) -> Unit
Link copied to clipboard
typealias DecorateState<S, I, A> = suspend PipelineContext<S, I, A>.(child: StorePlugin<S, I, A>, old: S, new: S) -> S?
Link copied to clipboard
typealias DecorateValue<S, I, A, V> = suspend PipelineContext<S, I, A>.(child: StorePlugin<S, I, A>, it: V) -> V?
Link copied to clipboard

This is a builder object for PluginDecorator. It wraps another StorePlugin and implements the StorePlugin interface.

Link copied to clipboard

This class is an (already created) instance of the decorator for a StorePlugin.

Functions

Link copied to clipboard

Return a new StorePlugin that decorates this plugin using all decorators.

infix fun <S : MVIState, I : MVIIntent, A : MVIAction> StorePlugin<S, I, A>.decoratedWith(decorator: PluginDecorator<S, I, A>): StorePlugin<S, I, A>

Return a new StorePlugin that decorates this plugin using decorator

Link copied to clipboard
infix fun <S : MVIState, I : MVIIntent, A : MVIAction> PluginDecorator<S, I, A>.decorates(plugin: StorePlugin<S, I, A>): StorePlugin<S, I, A>

Returns a new StorePlugin with this PluginDecorator applied to the plugin.

Link copied to clipboard
inline fun <S : MVIState, I : MVIIntent, A : MVIAction> decorator(block: DecoratorBuilder<S, I, A>.() -> Unit): PluginDecorator<S, I, A>

Build a new PluginDecorator.