Package-level declarations

Types

Link copied to clipboard
class AndroidViewBlock<Presentation : View>(factory: (Context) -> Presentation, update: suspend (Presentation) -> Unit) : ViewBlock

A ViewBlock implementation for Android views.

Link copied to clipboard
data class ComposeInsets(val start: Dp = 0.dp, val top: Dp = 0.dp, val end: Dp = 0.dp, val bottom: Dp = 0.dp)
Link copied to clipboard

A ViewBlock implementation for Compose UI components.

Link copied to clipboard

A ViewBlock that represents a default view block.

Link copied to clipboard

A ViewBlock that represents a hidden or non-rendered view block.

Link copied to clipboard
Link copied to clipboard
abstract class ViewBlock

Abstract base class for all view blocks.

Properties

Link copied to clipboard
val NoOpUpdate: View.() -> Unit

A no-operation update function for views.

Functions

Link copied to clipboard
fun ComposeView.initWithContent(insetMask: Int = WindowInsetsCompat.Type.systemBars(), content: @Composable () -> Unit)
Link copied to clipboard
Link copied to clipboard
inline fun <VM : ViewModel> koinViewModel(storeOwner: ViewModelStoreOwner = requireNotNull(LocalViewModelStoreOwner.current), viewTreeScopeOwner: Scope = requireNotNull(LocalViewTreeScopeOwner.current), noinline parameters: ParametersDefinition? = null): VM
Link copied to clipboard
fun Modifier.noIndicationClickable(onClick: () -> Unit = {}): Modifier
Link copied to clipboard
Link copied to clipboard
fun Modifier.roundOutlineButton(borderColor: Color, onClick: () -> Unit, enabled: Boolean = true): Modifier
Link copied to clipboard
fun Modifier.shadow(blur: Dp = 8.dp, offsetX: Dp = 0.dp, offsetY: Dp = 4.dp, alpha: Float = MAX_SHADOW_ALPHA, shape: Shape = RectangleShape): Modifier

Unlike androidx.compose.ui.draw.shadow, this modifier does not draw behind transparent surfaces, has predictable direction and allows for more customization

Link copied to clipboard
Link copied to clipboard
inline fun ViewBlockComposer(viewBlock: ViewBlock, defaultBlock: @Composable () -> Unit = {})
inline fun ViewBlockComposer(viewBlock: ViewBlock, defaultBlock: @Composable () -> Unit, loadingViewBlock: @Composable () -> Unit)