DismissDirection

Added in 1.1.0
Deprecated in 1.2.0

The directions in which a SwipeToDismissBox can be dismissed.

Summary

Enum Values

EndToStart

Can be dismissed by swiping in the reverse of the reading direction.

StartToEnd

Can be dismissed by swiping in the reading direction.

Public functions

DismissDirection
valueOf(value: String)

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

Cmn
Array<DismissDirection>

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

Cmn

Enum Values

EndToStart

@ExperimentalMaterial3Api
val DismissDirection.EndToStartDismissDirection

Can be dismissed by swiping in the reverse of the reading direction.

StartToEnd

@ExperimentalMaterial3Api
val DismissDirection.StartToEndDismissDirection

Can be dismissed by swiping in the reading direction.

Public functions

valueOf

fun valueOf(value: String): DismissDirection

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<DismissDirection>

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.