Package-level declarations
Types
Link copied to clipboard
object SettingsButtonDefaults
Default values for SettingsButton.
Functions
Link copied to clipboard
fun SettingsButton(onClick: () -> Unit, imageVector: ImageVector, contentDescription: String, modifier: Modifier = Modifier, enabled: Boolean = true, alignment: Alignment = Alignment.Center, buttonColors: IconButtonColors = SettingsButtonDefaults.buttonColors(), shape: Shape = CircleShape, iconSize: Dp = ICON_SIZE, badgeVector: ImageVector? = null, badgeShape: Shape = defaultBadgeShape(), badgeColors: IconButtonColors = SettingsButtonDefaults.badgeColors(), border: BorderStroke? = null)
An icon button to launch a screen to control the system.
Link copied to clipboard
fun VolumeButton(onVolumeClick: () -> Unit, modifier: Modifier = Modifier, imageVector: ImageVector = Icons.Rounded.Radio, enabled: Boolean = true, alignment: Alignment = Alignment.Center, buttonColors: IconButtonColors = SettingsButtonDefaults.buttonColors(), contentDescription: String = stringResource(ModelR.string.horologist_set_volume_content_description), border: BorderStroke? = null)
A composable function that creates a volume button.
fun VolumeButton(onVolumeClick: () -> Unit, modifier: Modifier = Modifier, volumeUiState: VolumeUiState?, enabled: Boolean = true, alignment: Alignment = Alignment.Center, buttonColors: IconButtonColors = SettingsButtonDefaults.buttonColors(), contentDescription: String = stringResource(ModelR.string.horologist_set_volume_content_description), border: BorderStroke? = null)
A composable function that creates a volume button with dynamic icon based on the volumeUiState.
Link copied to clipboard
fun VolumeButtonWithBadge(onOutputClick: () -> Unit, imageVector: ImageVector, modifier: Modifier = Modifier, enabled: Boolean = true, alignment: Alignment = Alignment.Center, buttonColors: IconButtonColors = SettingsButtonDefaults.buttonColors(), badgeVector: ImageVector? = null, badgeColors: IconButtonColors = SettingsButtonDefaults.badgeColors(), contentDescription: String = stringResource(ModelR.string.horologist_set_volume_content_description), border: BorderStroke? = null)
A composable function that creates an audio output button with an optional badge.
fun VolumeButtonWithBadge(onOutputClick: () -> Unit, audioOutputUi: AudioOutputUi, volumeUiState: VolumeUiState?, modifier: Modifier = Modifier, enabled: Boolean = true, alignment: Alignment = Alignment.Center, buttonColors: IconButtonColors = SettingsButtonDefaults.buttonColors(), badgeColors: IconButtonColors = SettingsButtonDefaults.badgeColors(), contentDescription: String = stringResource(ModelR.string.horologist_set_volume_content_description), border: BorderStroke? = null)
A composable function that creates an audio output button with an optional badge, dynamically displaying icons based on the audio output and volume states.