VolumeButton
A composable function that creates a volume button.
Parameters
The callback invoked when the button is clicked.
The modifier to be applied to the button.
The ImageVector to be used for the button's icon.
Controls the enabled state of the button. When false, the button will not respond to user input.
The alignment of the button within the tap area.
The colors to be used for the button.
The content description to be used for the button.
A composable function that creates a volume button with dynamic icon based on the volumeUiState.
The button's icon changes depending on the volume state provided. If the volume is at its minimum, the button displays a mute icon. If the volume is not at its maximum, the button shows a volume down icon. In all other cases, including when no volume state is provided or the volume is at its maximum, the button displays a volume up icon..
Parameters
The callback invoked when the button is clicked.
The modifier to be applied to the button.
The state of the volume UI, used to determine the button's icon.
Controls the enabled state of the button. When false, the button will not respond to user input.
The alignment of the button within the tap area.
The colors to be used for the button.
The content description to be used for the button.