AmbientSeekToNextButton

fun AmbientSeekToNextButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, colorScheme: ColorScheme = MaterialTheme.colorScheme, icon: ImageVector = ImageVector.vectorResource(R.drawable.rounded_skip_next_24), iconSize: Dp = IconButtonDefaults.SmallIconSize, buttonPadding: PaddingValues = PaddingValues(0.dp), colors: IconButtonColors = MediaButtonDefaults.mediaButtonAmbientColors(colorScheme), border: BorderStroke? = MediaButtonDefaults .ambientButtonBorder(enabled = enabled, colorScheme = colorScheme))

An animated seek-to-next button to display in the ambient mode.

Parameters

onClick

The callback to be invoked when the button is clicked.

modifier

Optional Modifier to be applied to the button.

enabled

Controls the enabled state of the button. When false, the button is disabled.

colorScheme

The ColorScheme used for the button.

icon

Optional ImageVector to draw inside this button. If not provided, a default next icon will be displayed.

iconSize

The size of the icon to be displayed on the button. Defaults to IconButtonDefaults.SmallIconSize.

buttonPadding

the padding around the button.

colors

IconButtonColors that will be used to resolve the colors used for this button in different states. Defaults to MediaButtonDefaults.mediaButtonAmbientColors.

border

Optional BorderStroke to be applied to the button. If null, no border is drawn. Defaults to a thin border with primary-dim color and 0.5f alpha.