PlayButton
A composable function that renders a Play button with customizable appearance and behavior.
This function is a wrapper around the standard IconButton
composable with additional properties specifically designed for a play button.
Parameters
: Modifier to apply to the button (optional)
: Function to be called when the button is clicked (required)
: The vector asset to be used as the button icon (default: Icons.Filled.PlayArrow)
: A content description for accessibility (default: "Current Song is Playing")
: Boolean indicating whether the button is clickable (default: true)
: Colors to be applied to the button (default: IconButtonDefaults.iconButtonColors())
: A MutableInteractionSource object to provide information about user interactions (default: a new instance)
This function uses IconButton
internally to create a clickable button with the specified icon and content description. Clicking the button triggers the onClick
function.