Package-level declarations

Types

Link copied to clipboard

Utility object for accessing and reading resources from the classpath.

Link copied to clipboard
sealed interface UiText

A sealed interface representing UI text that can be resolved dynamically in Compose or using an Android Context.

Properties

Link copied to clipboard

Checks if the first item in the lazy list is visible at index 0 and fully aligned at the top (scroll offset 0).

Link copied to clipboard

Checks if the last item in the lazy list is currently visible in the viewport (at least partially).

Link copied to clipboard

Checks if the lazy list is scrolled completely to the end (no remaining forward scroll distance).

Functions

Link copied to clipboard
fun CloseKeyboardEffect(keepFocus: Boolean = false)

A Composable side effect that closes the virtual keyboard when entering the composition.

Link copied to clipboard
inline fun <T> UiState<T>.Content(crossinline onSuccess: @Composable (data: T) -> Unit, noinline onLoading: @Composable () -> Unit? = null, noinline onIdle: @Composable () -> Unit? = null, noinline onFailure: @Composable (throwable: Throwable) -> Unit? = null)

Exhaustively renders UI content based on the current UiState.

Link copied to clipboard
inline fun <T> UiState<T>.onFailure(block: (throwable: Throwable) -> Unit): UiState<T>

Executes block with UiState.Failure.throwable if the UiState is UiState.Failure. Returns this to allow chaining.

Link copied to clipboard
inline fun <T> UiState<T>.onIdle(block: () -> Unit): UiState<T>

Executes block if the UiState is UiState.Idle. Returns this to allow chaining.

Link copied to clipboard
inline fun <T> UiState<T>.onLoading(block: () -> Unit): UiState<T>

Executes block if the UiState is UiState.Loading. Returns this to allow chaining.

Link copied to clipboard
inline fun <T> UiState<T>.onSuccess(block: (data: T) -> Unit): UiState<T>

Executes block with UiState.Success.data if the UiState is UiState.Success. Returns this to allow chaining.