startPreviewRoute

abstract fun startPreviewRoute(onReceive: (String, String) -> String)

Starts the preview route.

Parameters

onReceive

The handler for the preview route. It receives the mapping rules and returns the preview.