onIntent

fun onIntent(block: DecorateValue<S, I, A, I>)

Wraps the StorePlugin.onIntent method of the child plugin passed in the block parameter.

The StorePlugin.onIntent method will not be invoked unless you manually call StorePlugin.onIntent inside this block!

For pre-context parameters version, to correctly call the child method, use child.run { onIntent(intent) }

The return value of block will mean what the store reports as the result of handling the intent. Use null to consider the intent handled. Use the return value of child.onIntent to delegate the result.

See the DecoratorBuilder documentation for details on how this function behaves.