ErrorDisplay

fun ErrorDisplay(modifier: Modifier = Modifier)(source)

A display for a fatal error, if the player encounters one.

Parameters

modifier

the Modifier to be applied to this display


fun ErrorDisplay(state: ErrorState, modifier: Modifier = Modifier)(source)

A display for a fatal error, if the player encounters one.

The error is only captured from the player's error event, so create the ErrorState before an error can happen: at the top of your UI instead of inside the error overlay that is only shown once there's an error.

Parameters

state

the ErrorState to read

modifier

the Modifier to be applied to this display