Package-level declarations

Functions

Link copied to clipboard
fun AccountChip(account: AccountUiModel, onClick: () -> Unit, modifier: Modifier = Modifier, defaultAvatar: Paintable? = Icons.Default.AccountCircle.asPaintable(), largeAvatar: Boolean = true, colors: ChipColors = ChipDefaults.primaryChipColors(), enabled: Boolean = true)

A Chip to display the AccountUiModel's email address and avatar.

fun AccountChip(email: String, onClick: () -> Unit, modifier: Modifier = Modifier, avatar: Paintable? = null, defaultAvatar: Paintable? = Icons.Default.AccountCircle.asPaintable(), largeAvatar: Boolean = true, colors: ChipColors = ChipDefaults.primaryChipColors(), enabled: Boolean = true)

A Chip to display an email address and avatar.

Link copied to clipboard
fun CreateAccountChip(onClick: () -> Unit, modifier: Modifier = Modifier, label: String = stringResource(id = R.string.horologist_create_account_chip_label), largeIconSpace: Boolean = false, colors: ChipColors = ChipDefaults.primaryChipColors(), enabled: Boolean = true)

An opinionated Chip to represent the "Create account" action.

Link copied to clipboard
fun GuestModeChip(onClick: () -> Unit, modifier: Modifier = Modifier, label: String = stringResource(id = R.string.horologist_guest_mode_chip_label), colors: ChipColors = ChipDefaults.primaryChipColors(), enabled: Boolean = true)

An opinionated Chip to represent the "Guest mode" action.

Link copied to clipboard
fun OtherOptionsChip(onClick: () -> Unit, modifier: Modifier = Modifier, label: String = stringResource(id = R.string.horologist_other_options_chip_label), colors: ChipColors = ChipDefaults.primaryChipColors(), enabled: Boolean = true)

An opinionated Chip to represent the "Other options to authentication" action.

Link copied to clipboard
fun SignInChip(onClick: () -> Unit, modifier: Modifier = Modifier, label: String = stringResource(id = R.string.horologist_sign_in_chip_label), colors: ChipColors = ChipDefaults.primaryChipColors(), enabled: Boolean = true)

An opinionated Chip to represent the "Sign in" action.