crashScreen

fun crashScreen(screen: Screen, onCrash: suspend (exception: Throwable, action: ModuleAction?) -> CrashRecovery? = null)(source)

Sets the screen to display when a crash occurs in a logic method.

The crash screen receives params:

  • "exceptionType" — exception class name

  • "exceptionMessage" — exception message

  • "actionType" — the action that triggered the logic

Parameters

screen

The screen to display on crash

onCrash

Optional callback invoked before navigation