DismissValue

Added in 1.1.0
Deprecated in 1.2.0

Possible values of SwipeToDismissBoxState.

Summary

Enum Values

Default

Indicates the component has not been dismissed yet.

DismissedToEnd

Indicates the component has been dismissed in the reading direction.

DismissedToStart

Indicates the component has been dismissed in the reverse of the reading direction.

Public functions

DismissValue
valueOf(value: String)

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

Cmn
Array<DismissValue>

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

Cmn

Enum Values

Default

@ExperimentalMaterial3Api
val DismissValue.DefaultDismissValue

Indicates the component has not been dismissed yet.

DismissedToEnd

@ExperimentalMaterial3Api
val DismissValue.DismissedToEndDismissValue

Indicates the component has been dismissed in the reading direction.

DismissedToStart

@ExperimentalMaterial3Api
val DismissValue.DismissedToStartDismissValue

Indicates the component has been dismissed in the reverse of the reading direction.

Public functions

valueOf

fun valueOf(value: String): DismissValue

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

fun values(): Array<DismissValue>

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.