SetMode

data class SetMode(val mode: Mode) : Intent

Switch to a different drawing mode.

Changes what type of element is created on the next user interaction. For example, switching from Mode.PEN to Mode.RECTANGLE causes the next drag to create a rectangle instead of a path.

Constructors

Link copied to clipboard
constructor(mode: Mode)

Properties

Link copied to clipboard
val mode: Mode