arch-android

//Android/br.com.arch.toolkit.android.statemachine/SceneStateMachine/State

State

[android]
class State : StateMachine.State

Represents a single state in a SceneStateMachine.

Properties

Name Summary
enter [android]
var enter: () -> Unit?
Callback to be invoked when entering this state.
exit [android]
var exit: () -> Unit?
Callback to be invoked when exiting this state.

Functions

Name Summary
onEnter [android]
open override fun onEnter(callback: () -> Unit): SceneStateMachine.State
Sets a callback to be invoked when entering this state.
onExit [android]
open override fun onExit(callback: () -> Unit): SceneStateMachine.State
Sets a callback to be invoked when exiting this state.
scene [android]
fun scene(scene: ERROR CLASS: Symbol not found for Scene): SceneStateMachine.State
Sets the scene for a SceneStateMachine.State.
[android]
fun scene(pair: Pair<Int, ERROR CLASS: Symbol not found for ViewGroup>): SceneStateMachine.State
Sets the scene for a SceneStateMachine.State using a Pair of layout resource ID and container.
[android]
fun scene(@LayoutRessceneLayout: Int, container: ERROR CLASS: Symbol not found for ViewGroup): SceneStateMachine.State
Sets the scene for a SceneStateMachine.State using a layout resource ID and container.
transition [android]
fun transition(transition: ERROR CLASS: Symbol not found for Transition): SceneStateMachine.State
Sets the transition to be used when entering this state.