object A2uiSurfaceDefaults


Contains the defaults for A2uiSurface visual states and transitions.

Summary

Public functions

Unit

The default error fallback displaying the error message for use by A2uiSurface when the root component transitions to an A2uiComponentState.Error state.

Unit

The default loading indicator for use by A2uiSurface when the root component is in an A2uiComponentState.Loading state.

Public properties

AnimatedContentTransitionScope<A2uiComponentState>.() -> ContentTransform

The default structural transition animation spec used by A2uiSurface when transitioning between root component loading, success, and error states.

Public functions

ErrorFallback

Added in 1.0.0-alpha01
@Composable
fun ErrorFallback(exception: A2uiException): Unit

The default error fallback displaying the error message for use by A2uiSurface when the root component transitions to an A2uiComponentState.Error state.

Parameters
exception: A2uiException

the A2uiException detailing the error that caused the render failure

LoadingIndicator

Added in 1.0.0-alpha01
@Composable
fun LoadingIndicator(): Unit

The default loading indicator for use by A2uiSurface when the root component is in an A2uiComponentState.Loading state.

Public properties

transitionSpec

val transitionSpecAnimatedContentTransitionScope<A2uiComponentState>.() -> ContentTransform

The default structural transition animation spec used by A2uiSurface when transitioning between root component loading, success, and error states.