CreationArgumentsBuilder

Properties

Link copied to clipboard
abstract override var autoDestroyOnStatesReuse: Boolean

Allows the library to automatically call destroy() on current state owning machine instance if user tries to reuse its states in another machine. Usually this is a result of using object states in sequentially created similar machines. destroy() will be called on the previous machine instance. If set to false an exception will be thrown on state reuse attempt. Default: true

Link copied to clipboard

If set to true, when multiple transitions match event the first matching transition is selected. if set to false, when multiple transitions match event exception is thrown. Default: false

Link copied to clipboard

If set, enables incoming events recording in order to restore StateMachine later. By default, event recording is disabled. Use StateMachine.eventRecorder to access the recording result. Default: null

Link copied to clipboard
abstract override var isUndoEnabled: Boolean

Enables Undo transition. Default: false

Link copied to clipboard
abstract override var requireNonBlankNames: Boolean

If enabled, throws exception on the machine start, if it contains states or transitions with null or blank names Default: false