-
public final class ChipKt
-
-
Method Summary
Modifier and Type Method Description final static UnitChip(String label, Function0<Unit> onClick, Modifier modifier, Function0<Unit> onLongClick, String secondaryLabel, IconRtlMode iconRtlMode, Paintable icon, Boolean largeIcon, ChipColors colors, Boolean enabled)This component is an alternative to Chip, providing the following: a convenient way of providing a label and a secondary label;
a convenient way of providing an icon and a placeholder, and choosing their size based on the sizes recommended by the Wear guidelines;
final static UnitChip(@StringRes() Integer labelId, Function0<Unit> onClick, Modifier modifier, Function0<Unit> onLongClick, @StringRes() Integer secondaryLabel, IconRtlMode iconRtlMode, Paintable icon, Boolean largeIcon, ChipColors colors, Boolean enabled)This component is an alternative to Chip, providing the following: a convenient way of providing a label and a secondary label;
a convenient way of providing an icon and a placeholder, and choosing their size based on the sizes recommended by the Wear guidelines;
final static UnitChip(String label, Function0<Unit> onClick, Modifier modifier, Function0<Unit> onLongClick, String secondaryLabel, Function1<BoxScope, Unit> icon, Boolean largeIcon, ChipColors colors, Boolean enabled)This component is an alternative to Chip, providing the following: a convenient way of providing a label and a secondary label;
final static UnitChip(Function1<RowScope, Unit> label, Function0<Unit> onClick, Modifier modifier, Function0<Unit> onLongClick, Function1<RowScope, Unit> secondaryLabel, Function1<BoxScope, Unit> icon, ChipColors colors, Boolean enabled, MutableInteractionSource interactionSource, PaddingValues contentPadding, Shape shape, ChipBorder border)Temporary copy of Wear Compose Material Chip with support for onLongClick. final static UnitChip(Function0<Unit> onClick, ChipColors colors, ChipBorder border, Modifier modifier, Function0<Unit> onLongClick, Boolean enabled, PaddingValues contentPadding, Shape shape, MutableInteractionSource interactionSource, Role role, Function1<BoxScope, Unit> content)Temporary copy of Wear Compose Material Chip with support for onLongClick. -
-
Method Detail
-
Chip
final static Unit Chip(String label, Function0<Unit> onClick, Modifier modifier, Function0<Unit> onLongClick, String secondaryLabel, IconRtlMode iconRtlMode, Paintable icon, Boolean largeIcon, ChipColors colors, Boolean enabled)
This component is an alternative to Chip, providing the following:
a convenient way of providing a label and a secondary label;
a convenient way of providing an icon and a placeholder, and choosing their size based on the sizes recommended by the Wear guidelines;
-
Chip
final static Unit Chip(@StringRes() Integer labelId, Function0<Unit> onClick, Modifier modifier, Function0<Unit> onLongClick, @StringRes() Integer secondaryLabel, IconRtlMode iconRtlMode, Paintable icon, Boolean largeIcon, ChipColors colors, Boolean enabled)
This component is an alternative to Chip, providing the following:
a convenient way of providing a label and a secondary label;
a convenient way of providing an icon and a placeholder, and choosing their size based on the sizes recommended by the Wear guidelines;
-
Chip
final static Unit Chip(String label, Function0<Unit> onClick, Modifier modifier, Function0<Unit> onLongClick, String secondaryLabel, Function1<BoxScope, Unit> icon, Boolean largeIcon, ChipColors colors, Boolean enabled)
This component is an alternative to Chip, providing the following:
a convenient way of providing a label and a secondary label;
-
Chip
final static Unit Chip(Function1<RowScope, Unit> label, Function0<Unit> onClick, Modifier modifier, Function0<Unit> onLongClick, Function1<RowScope, Unit> secondaryLabel, Function1<BoxScope, Unit> icon, ChipColors colors, Boolean enabled, MutableInteractionSource interactionSource, PaddingValues contentPadding, Shape shape, ChipBorder border)
Temporary copy of Wear Compose Material Chip with support for onLongClick.
-
Chip
final static Unit Chip(Function0<Unit> onClick, ChipColors colors, ChipBorder border, Modifier modifier, Function0<Unit> onLongClick, Boolean enabled, PaddingValues contentPadding, Shape shape, MutableInteractionSource interactionSource, Role role, Function1<BoxScope, Unit> content)
Temporary copy of Wear Compose Material Chip with support for onLongClick.
-
-
-