Action

class Action(@StringRes val label: Int, val icon: ToolkitIcon, val onClick: (Context) -> Unit, @StringRes val shortLabel: Int? = null) : DrawerEntry(source)

Runs onClick instead of navigating, for entries such as Share that leave the app.

Constructors

Link copied to clipboard
constructor(@StringRes label: Int, icon: ToolkitIcon, onClick: (Context) -> Unit, @StringRes shortLabel: Int? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val label: Int
Link copied to clipboard
val onClick: (Context) -> Unit
Link copied to clipboard
open override val shortLabel: Int?

A shorter label for the collapsed rail, where the full one would be cut off.