Package-level declarations

Types

Link copied to clipboard
data class Section<T>(val state: Section.State<T>, val headerContent: @Composable SectionContentScope.() -> Unit? = null, val headerVisibleStates: Section.VisibleStates = ALL_STATES, val loadingContent: @Composable SectionContentScope.() -> Unit? = null, val loadingContentCount: Int = DEFAULT_LOADING_CONTENT_COUNT, val loadedContent: @Composable SectionContentScope.(T) -> Unit? = null, val failedContent: @Composable SectionContentScope.() -> Unit? = null, val emptyContent: @Composable SectionContentScope.() -> Unit? = null, val footerContent: @Composable SectionContentScope.() -> Unit? = null, val footerVisibleStates: Section.VisibleStates = LOADED_STATE_ONLY)

A section in SectionedList.

Link copied to clipboard

Receiver scope which is used by content parameter in SectionScope functions.

Link copied to clipboard

Receiver scope which is used by content parameter in SectionedList.

Link copied to clipboard

Receiver scope which is used by content parameter in SectionedListScope functions.

Functions

Link copied to clipboard
fun MarqueeText(text: String, modifier: Modifier = Modifier, color: Color = Color.Unspecified, style: TextStyle = LocalTextStyle.current, textAlign: TextAlign = TextAlign.Left, followGap: Dp = 96.dp, edgeGradientWidth: Dp = 16.dp, startGap: Dp = edgeGradientWidth, marqueeDpPerSecond: Dp = 64.dp, pauseTime: Duration = 4.seconds)
fun MarqueeText(text: AnnotatedString, modifier: Modifier = Modifier, inlineContent: Map<String, InlineTextContent> = mapOf(), color: Color = Color.Unspecified, style: TextStyle = LocalTextStyle.current, textAlign: TextAlign = TextAlign.Left, followGap: Dp = 96.dp, edgeGradientWidth: Dp = 16.dp, startGap: Dp = edgeGradientWidth, marqueeDpPerSecond: Dp = 64.dp, pauseTime: Duration = 4.seconds)

Show a single line Marquee text, with a pause (initial and between cycles) and speed.

Link copied to clipboard
fun PlaceholderButton(modifier: Modifier = Modifier, onClick: () -> Unit = {}, placeholderState: PlaceholderState = rememberPlaceholderState(true), secondaryLabel: Boolean = true, icon: Boolean = true, colors: ButtonColors = ButtonDefaults.buttonColors(), enabled: Boolean = false, contentDescription: String = stringResource(id = R.string.horologist_placeholderchip_content_description))

A placeholder button to be displayed while the contents of the Button is being loaded.

Link copied to clipboard
fun RepeatableClickableButton(onClick: () -> Unit, modifier: Modifier = Modifier, onRepeatableClick: () -> Unit = onClick, onRepeatableClickEnd: () -> Unit = {}, enabled: Boolean = true, shape: Shape = CircleShape, colors: IconButtonColors = IconButtonDefaults.iconButtonColors(), border: BorderStroke? = null, buttonPadding: PaddingValues = PaddingValues(0.dp), indication: Indication? = ripple(), interactionSource: MutableInteractionSource? = null, content: @Composable BoxScope.() -> Unit)

A base button that can send single onClick event or repeated onRepeatableClick events by holding it down.

Link copied to clipboard
fun SectionedList(modifier: Modifier = Modifier, scrollState: ScalingLazyListState, content: SectionedListScope.() -> Unit)
fun SectionedList(modifier: Modifier = Modifier, scrollState: ScalingLazyListState, sections: List<Section<*>> = emptyList())

A list component that is split into sections. Each Section has its own state controlled individually.

Link copied to clipboard
fun UnboundedRippleIconButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colors: IconButtonColors = IconButtonDefaults.iconButtonColors(), interactionSource: MutableInteractionSource? = null, rippleRadius: Dp? = Dp.Unspecified, shape: Shape = CircleShape, buttonPadding: PaddingValues = PaddingValues(0.dp), border: BorderStroke? = null, animationSpec: FiniteAnimationSpec<Color> = MaterialTheme.motionScheme.slowEffectsSpec(), content: @Composable BoxScope.() -> Unit)

A button with slot for an icon and a ripple effect that is unbounded.