Writeopia
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
Writeopia
writeopia_ui
/
io.writeopia.ui.edition
/
TextCommandHandler
Text
Command
Handler
class
TextCommandHandler
(
commandsMap
:
Map
<
Command
,
(
StoryStep
,
Int
)
->
Unit
>
,
excludeTypes
:
Set
<
Int
>
=
setOf(StoryTypes.TITLE.type.number)
)
Members
Constructors
Text
Command
Handler
Link copied to clipboard
constructor
(
commandsMap
:
Map
<
Command
,
(
StoryStep
,
Int
)
->
Unit
>
,
excludeTypes
:
Set
<
Int
>
=
setOf(StoryTypes.TITLE.type.number)
)
Types
Companion
Link copied to clipboard
object
Companion
Functions
handle
Command
Link copied to clipboard
fun
handleCommand
(
text
:
String
,
step
:
StoryStep
,
position
:
Int
)
:
Boolean