Skip to content

//workflow/com.squareup.workflow1/SimpleLoggingWorkflowInterceptor

SimpleLoggingWorkflowInterceptor

[jvm] open class SimpleLoggingWorkflowInterceptor : WorkflowInterceptor

A WorkflowInterceptor that just prints all method calls using log.

Constructors

SimpleLoggingWorkflowInterceptor [jvm] fun SimpleLoggingWorkflowInterceptor()

Functions

Name Summary
onInitialState [jvm]
Content
open override fun <P, S> onInitialState(props: P, snapshot: Snapshot?, proceed: (P, Snapshot?) -> S, session: WorkflowInterceptor.WorkflowSession): S
More info
Intercepts calls to StatefulWorkflow.initialState.


onPropsChanged [jvm]
Content
open override fun <P, S> onPropsChanged(old: P, new: P, state: S, proceed: (P, P, S) -> S, session: WorkflowInterceptor.WorkflowSession): S
More info
Intercepts calls to StatefulWorkflow.onPropsChanged.


onRender [jvm]
Content
open override fun <P, S, O, R> onRender(renderProps: P, renderState: S, context: BaseRenderContext<P, S, O>, proceed: (P, S, WorkflowInterceptor.RenderContextInterceptor<P, S, O>?) -> R, session: WorkflowInterceptor.WorkflowSession): R
More info
Intercepts calls to StatefulWorkflow.render.


onSessionStarted [jvm]
Content
open override fun onSessionStarted(workflowScope: CoroutineScope, session: WorkflowInterceptor.WorkflowSession)
More info
Called when the session is starting, before onInitialState.


onSnapshotState [jvm]
Content
open override fun <S> onSnapshotState(state: S, proceed: (S) -> Snapshot?, session: WorkflowInterceptor.WorkflowSession): Snapshot?
More info
Intercepts calls to StatefulWorkflow.snapshotState.