Screen

enum Screen(@StringRes val nameRes: Int, val icon: Icon, val size: Dp = 25.dp) : Enum<Screen>

This enum defines the order in which the destinations appear. The names of the enums are also the id of the each screen

Parameters

nameRes

the name used in the navigation bar

Constructors

Link copied to clipboard
private constructor(@StringRes nameRes: Int, icon: Icon, size: Dp = 25.dp)

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val icon: Icon
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val size: Dp

Functions

Link copied to clipboard
fun valueOf(value: String): Screen

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.