PreviewStrategy

interface PreviewStrategy

Strategy that handles delivery of a freshly produced compilation outcome to a preview target after each successful compile, when preview mode is enabled.

Inheritors

Functions

Link copied to clipboard
abstract fun update(options: PipelineOptions, outcome: ExecutionOutcome)

Notifies the preview target that a new compilation outcome is available and that the preview should be refreshed accordingly. Implementations are expected to be invoked once per successful compile and may keep internal state.