{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

DrawerValue

public enum DrawerValue extends Enum

java.lang.Object
   ↳ kotlin.Enum
     ↳ androidx.compose.material3.DrawerValue

Possible values of DrawerState.

Summary

Enum Values

Closed

The state of the drawer when it is closed.

Open

The state of the drawer when it is open.

Public methods

final @NonNull EnumEntries<@NonNull DrawerValue>

Possible values of DrawerState.

final @NonNull DrawerValue

Returns the enum constant of this type with the specified name.

final @NonNull DrawerValue[]

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

Enum Values

Closed

DrawerValue DrawerValue.Closed

The state of the drawer when it is closed.

Open

DrawerValue DrawerValue.Open

The state of the drawer when it is open.

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull DrawerValuegetEntries()

Possible values of DrawerState.

valueOf

public final @NonNull DrawerValue valueOf(@NonNull String value)

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.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

public final @NonNull DrawerValue[] values()

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

This method may be used to iterate over the constants.