CustomActionMediaButton

fun CustomActionMediaButton(onClick: () -> Unit, icon: Paintable, contentDescription: String?, modifier: Modifier = Modifier, enabled: Boolean = true, shape: Shape = CircleShape, colors: IconButtonColors = CustomActionMediaButtonDefaults.buttonColors(), buttonPadding: PaddingValues = PaddingValues(0.dp), interactionSource: MutableInteractionSource? = null, iconSize: Dp = IconButtonDefaults.SmallIconSize, border: BorderStroke? = null)

A base button for custom action media controls.

Parameters

onClick

Will be called when the user clicks the button.

icon

The icon to display inside the button.

contentDescription

The content description for the icon.

modifier

Modifier to be applied to the button.

enabled

Controls the enabled state of the button. When false, this button will not be clickable (Optional).

shape

Defines the shape for this button. Defaults to CircleShape (Optional).

colors

IconButtonColors that will be used to resolve the background and icon color for this button in different states (Optional).

buttonPadding

The padding to be applied around the button. Defaults to Zero (Optional).

interactionSource

an optional hoisted MutableInteractionSource for observing and emitting Interactions for this button (Optional).

iconSize

The size of the icon. Defaults to IconButtonDefaults.SmallIconSize (Optional).

border

BorderStroke to be applied to the button. If null, no border is drawn (Optional).