Button

fun Button(imageVector: ImageVector, contentDescription: String, onClick: () -> Unit, modifier: Modifier = Modifier, onLongClick: () -> Unit? = null, colors: ButtonColors = ButtonDefaults.primaryButtonColors(), buttonSize: ButtonSize = ButtonSize.Default, iconRtlMode: IconRtlMode = IconRtlMode.Default, enabled: Boolean = true)
fun Button(@DrawableRes id: Int, contentDescription: String, onClick: () -> Unit, modifier: Modifier = Modifier, onLongClick: () -> Unit? = null, colors: ButtonColors = ButtonDefaults.primaryButtonColors(), buttonSize: ButtonSize = ButtonSize.Default, iconRtlMode: IconRtlMode = IconRtlMode.Default, enabled: Boolean = true)

This component is an alternative to Button, providing the following:

  • a convenient way of providing an icon and choosing its size from a range of sizes recommended by the Wear guidelines;